jan_flanders

Untitled

Sep 7th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. adnez@www:~$ rm /etc/apache2/mods-enabled/php5.*
  2. rm: cannot remove `/etc/apache2/mods-enabled/php5.conf': Permission denied
  3. rm: cannot remove `/etc/apache2/mods-enabled/php5.load': Permission denied
  4. adnez@www:~$ sudo rm /etc/apache2/mods-enabled/php5.*
  5. [sudo] password for adnez:
  6. adnez@www:~$ sudo /etc/init.d/apache2 restart
  7. [ ok ] Restarting web server: apache2 ... waiting .
  8. adnez@www:~$ apt-get autoremove php5
  9. E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
  10. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  11. adnez@www:~$ sudo /etc/init.d/apache2 stop
  12. [ ok ] Stopping web server: apache2 ... waiting .
  13. adnez@www:~$ apt-get autoremove php5
  14. E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
  15. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  16. adnez@www:~$ sudo apt-get autoremove php5
  17. Reading package lists... Done
  18. Building dependency tree
  19. Reading state information... Done
  20. The following packages will be REMOVED:
  21. php5
  22. 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
  23. After this operation, 21.5kB disk space will be freed.
  24. Do you want to continue [Y/n]? y
  25. dpkg: warning: 'ldconfig' not found in PATH or not executable.
  26. dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
  27. dpkg: error: 2 expected programs not found in PATH or not executable.
  28. Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
  29. E: Sub-process /usr/bin/dpkg returned an error code (2)
  30. adnez@www:~$ apt-get install php5
  31. E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
  32. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  33. adnez@www:~$ sudo apt-get install php5
  34. Reading package lists... Done
  35. Building dependency tree
  36. Reading state information... Done
  37. php5 is already the newest version.
  38. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
  39. adnez@www:~$ sudo apt-get install php5.3
  40. Reading package lists... Done
  41. Building dependency tree
  42. Reading state information... Done
  43. E: Couldn't find package php5.3
  44. adnez@www:~$ sudo /etc/init.d/apache2 restart
  45. [ ok ] Restarting web server: apache2.
  46. adnez@www:~$
Advertisement
Add Comment
Please, Sign In to add comment