I cannot install or remove anything have tried everything this is the output
drcdhardy@ubuntu:~$ sudo su
[sudo] password for drcdhardy:
root@ubuntu:/home/drcdhardy# sudo rm -rf /var/lib/apt/lists/*
root@ubuntu:/home/drcdhardy# sudo apt-get clean
root@ubuntu:/home/drcdhardy# sudo apt-get clean
root@ubuntu:/home/drcdhardy# sudo apt-get update
Ign http://download.webmin.com sarge InRelease
Get:1 http://download.webmin.com sarge Release.gpg [189 B]
Get:2 http://download.webmin.com sarge Release [8,967 B]
Get:3 http://download.webmin.com sarge/contrib powerpc Packages [1,217 B]
Ign http://archive.ubuntu.com quantal InRelease
Ign http://archive.ubuntu.com quantal-updates InRelease
Ign http://archive.ubuntu.com quantal-backports InRelease
Get:4 http://archive.ubuntu.com quantal Release.gpg [198 B]
Get:5 http://archive.ubuntu.com quantal-updates Release.gpg [198 B]
Get:6 http://archive.ubuntu.com quantal-backports Release.gpg [198 B]
Get:7 http://archive.ubuntu.com quantal Release [49.6 kB]
Get:8 http://archive.ubuntu.com quantal-updates Release [49.6 kB]
Ign http://download.webmin.com sarge/contrib Translation-en_US
Get:9 http://archive.ubuntu.com quantal-backports Release [49.6 kB]
Ign http://download.webmin.com sarge/contrib Translation-en
Get:10 http://archive.ubuntu.com quantal/main Sources [850 kB]
Get:11 http://archive.ubuntu.com quantal/restricted Sources [5,510 B]
Get:12 http://archive.ubuntu.com quantal/universe Sources [5,511 kB]
Ign http://ports.ubuntu.com quantal InRelease
Ign http://extras.ubuntu.com quantal InRelease
Ign http://webmin.mirror.somersettechsolutions.co.uk sarge InRelease
Ign http://ports.ubuntu.com quantal-updates InRelease
Get:13 http://extras.ubuntu.com quantal Release.gpg [72 B]
Get:14 http://webmin.mirror.somersettechsolutions.co.uk sarge Release.gpg [189 B]
Ign http://ports.ubuntu.com quantal-backports InRelease
Get:15 http://extras.ubuntu.com quantal Release [11.9 kB]
Ign http://ports.ubuntu.com quantal-security InRelease
Get:16 http://webmin.mirror.somersettechsolutions.co.uk sarge Release [8,967 B]
Get:17 http://ports.ubuntu.com quantal Release.gpg [198 B]
Get:18 http://ports.ubuntu.com quantal-updates Release.gpg [198 B]
Get:19 http://ports.ubuntu.com quantal-backports Release.gpg [198 B]
Get:20 http://ports.ubuntu.com quantal-security Release.gpg [198 B]
Get:21 http://ports.ubuntu.com quantal Release [49.6 kB]
Get:22 http://webmin.mirror.somersettechsolutions.co.uk sarge/contrib powerpc Packages [1,217 B]
Get:23 http://extras.ubuntu.com quantal/main Sources [14 B]
Get:24 http://extras.ubuntu.com quantal/main powerpc Packages [14 B]
Get:25 http://ports.ubuntu.com quantal-updates Release [49.6 kB]
Get:26 http://ports.ubuntu.com quantal-backports Release [49.6 kB]
Ign http://webmin.mirror.somersettechsolutions.co.uk sarge/contrib Translation-en_US
Get:27 http://ports.ubuntu.com quantal-security Release [49.6 kB]
Ign http://webmin.mirror.somersettechsolutions.co.uk sarge/contrib Translation-en
Ign http://extras.ubuntu.com quantal/main Translation-en_US
Get:28 http://ports.ubuntu.com quantal/main powerpc Packages [1,145 kB]
Ign http://extras.ubuntu.com quantal/main Translation-en
Get:29 http://ports.ubuntu.com quantal/restricted powerpc Packages [14 B]
Get:30 http://ports.ubuntu.com quantal/universe powerpc Packages [5,201 kB]
Get:31 http://archive.ubuntu.com quantal/multiverse Sources [162 kB]
Get:32 http://archive.ubuntu.com quantal-updates/main Sources [14 B]
Get:33 http://archive.ubuntu.com quantal-updates/restricted Sources [14 B]
Get:34 http://archive.ubuntu.com quantal-updates/universe Sources [14 B]
Get:35 http://archive.ubuntu.com quantal-updates/multiverse Sources [14 B]
Get:36 http://archive.ubuntu.com quantal-backports/main Sources [14 B]
Get:37 http://archive.ubuntu.com quantal-backports/restricted Sources [14 B]
Get:38 http://archive.ubuntu.com quantal-backports/universe Sources [14 B]
Get:39 http://archive.ubuntu.com quantal-backports/multiverse Sources [14 B]
Get:40 http://ports.ubuntu.com quantal/multiverse powerpc Packages [111 kB]
Get:41 http://ports.ubuntu.com quantal/main Translation-en [656 kB]
Get:42 http://ports.ubuntu.com quantal/multiverse Translation-en [95.8 kB]
Get:43 http://ports.ubuntu.com quantal/restricted Translation-en [2,401 B]
Get:44 http://ports.ubuntu.com quantal/universe Translation-en [3,627 kB]
Get:45 http://ports.ubuntu.com quantal-updates/main powerpc Packages [14 B]
Get:46 http://ports.ubuntu.com quantal-updates/restricted powerpc Packages [14 B]
Get:47 http://ports.ubuntu.com quantal-updates/universe powerpc Packages [14 B]
Get:48 http://ports.ubuntu.com quantal-updates/multiverse powerpc Packages [14 B]
Get:49 http://ports.ubuntu.com quantal-updates/main Translation-en [14 B]
Get:50 http://ports.ubuntu.com quantal-updates/multiverse Translation-en [14 B]
Get:51 http://ports.ubuntu.com quantal-updates/restricted Translation-en [14 B]
Get:52 http://ports.ubuntu.com quantal-updates/universe Translation-en [14 B]
Get:53 http://ports.ubuntu.com quantal-backports/main powerpc Packages [14 B]
Get:54 http://ports.ubuntu.com quantal-backports/restricted powerpc Packages [14 B]
Get:55 http://ports.ubuntu.com quantal-backports/universe powerpc Packages [14 B]
Get:56 http://ports.ubuntu.com quantal-backports/multiverse powerpc Packages [14 B]
Get:57 http://ports.ubuntu.com quantal-backports/main Translation-en [14 B]
Get:58 http://ports.ubuntu.com quantal-backports/multiverse Translation-en [14 B]
Get:59 http://ports.ubuntu.com quantal-backports/restricted Translation-en [14 B]
Get:60 http://ports.ubuntu.com quantal-backports/universe Translation-en [14 B]
Get:61 http://ports.ubuntu.com quantal-security/main Sources [14 B]
Get:62 http://ports.ubuntu.com quantal-security/restricted Sources [14 B]
Get:63 http://ports.ubuntu.com quantal-security/universe Sources [14 B]
Get:64 http://ports.ubuntu.com quantal-security/multiverse Sources [14 B]
Get:65 http://ports.ubuntu.com quantal-security/main powerpc Packages [14 B]
Get:66 http://ports.ubuntu.com quantal-security/restricted powerpc Packages [14 B]
Get:67 http://ports.ubuntu.com quantal-security/universe powerpc Packages [14 B]
Get:68 http://ports.ubuntu.com quantal-security/multiverse powerpc Packages [14 B]
Get:69 http://ports.ubuntu.com quantal-security/main Translation-en [14 B]
Get:70 http://ports.ubuntu.com quantal-security/multiverse Translation-en [14 B]
Get:71 http://ports.ubuntu.com quantal-security/restricted Translation-en [14 B]
Get:72 http://ports.ubuntu.com quantal-security/universe Translation-en [14 B]
Ign http://ports.ubuntu.com quantal/main Translation-en_US
Ign http://ports.ubuntu.com quantal/multiverse Translation-en_US
Ign http://ports.ubuntu.com quantal/restricted Translation-en_US
Ign http://ports.ubuntu.com quantal/universe Translation-en_US
Ign http://ports.ubuntu.com quantal-updates/main Translation-en_US
Ign http://ports.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://ports.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://ports.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://ports.ubuntu.com quantal-backports/main Translation-en_US
Ign http://ports.ubuntu.com quantal-backports/multiverse Translation-en_US
Ign http://ports.ubuntu.com quantal-backports/restricted Translation-en_US
Ign http://ports.ubuntu.com quantal-backports/universe Translation-en_US
Ign http://ports.ubuntu.com quantal-security/main Translation-en_US
Ign http://ports.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://ports.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://ports.ubuntu.com quantal-security/universe Translation-en_US
Fetched 17.7 MB in 1min 55s (154 kB/s)
Reading package lists... Done
root@ubuntu:/home/drcdhardy# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
php5-xcache
The following packages have been kept back:
gnome-control-center gnome-control-center-data gnome-desktop3-data
gnome-settings-daemon whoopsie
The following packages will be upgraded:
apport apport-gtk bluez bluez-alsa bluez-cups bluez-gstreamer gir1.2-gtk-3.0
gnome-online-accounts indicator-session language-selector-common
language-selector-gnome libart-2.0-2 libbluetooth3 libdjvulibre-text
libdjvulibre21 libgail-3-0 libglibmm-2.4-1c2a libgoa-1.0-0 libgoa-1.0-common
libgtk-3-0 libgtk-3-bin libgtk-3-common libgtkmm-3.0-1 libmailtools-perl
libmission-control-plugins0 libmtp-common libmtp-runtime libmtp9
libnautilus-extension1a login mtools mtr-tiny nautilus-data notify-osd
passwd python-apport python-cups python-problem-report python3-apport
python3-problem-report telepathy-mission-control-5 xinit
xserver-xorg-video-nouveau
43 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 10.0 MB of archives.
After this operation, 4,292 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ quantal/main login powerpc 1:4.1.4.2+svn3283-3ubuntu6 [286 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgail-3-0 powerpc 3.5.4-0ubuntu1 [23.6 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgtk-3-0 powerpc 3.5.4-0ubuntu1 [2,403 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgtk-3-bin powerpc 3.5.4-0ubuntu1 [15.8 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgtk-3-common all 3.5.4-0ubuntu1 [149 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports/ quantal/main gir1.2-gtk-3.0 powerpc 3.5.4-0ubuntu1 [251 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports/ quantal/main language-selector-gnome all 0.83 [20.1 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports/ quantal/main language-selector-common all 0.83 [365 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports/ quantal/main bluez powerpc 4.99-2ubuntu2 [949 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libart-2.0-2 powerpc 2.3.21-2 [57.5 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libbluetooth3 powerpc 4.99-2ubuntu2 [60.5 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libdjvulibre-text all 3.5.25.3-1 [67.4 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libdjvulibre21 powerpc 3.5.25.3-1 [717 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libglibmm-2.4-1c2a powerpc 2.33.1-0ubuntu1 [523 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports/ quantal/main gnome-online-accounts powerpc 3.5.2-0ubuntu1 [81.9 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgoa-1.0-0 powerpc 3.5.2-0ubuntu1 [110 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgoa-1.0-common all 3.5.2-0ubuntu1 [3,824 B]
Get:18 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libgtkmm-3.0-1 powerpc 3.5.4-0ubuntu1 [1,224 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libmtp-common all 1.1.3-24-g9aca343-1ubuntu1 [24.8 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libmtp-runtime powerpc 1.1.3-24-g9aca343-1ubuntu1 [4,692 B]
Get:21 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libmtp9 powerpc 1.1.3-24-g9aca343-1ubuntu1 [146 kB]
Get:22 http://ports.ubuntu.com/ubuntu-ports/ quantal/main passwd powerpc 1:4.1.4.2+svn3283-3ubuntu6 [906 kB]
Get:23 http://ports.ubuntu.com/ubuntu-ports/ quantal/main mtr-tiny powerpc 0.82-3ubuntu1 [34.9 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports/ quantal/main python3-problem-report all 2.2.3-0ubuntu4 [12.0 kB]
Get:25 http://ports.ubuntu.com/ubuntu-ports/ quantal/main python3-apport all 2.2.3-0ubuntu4 [80.4 kB]
Get:26 http://ports.ubuntu.com/ubuntu-ports/ quantal/main apport all 2.2.3-0ubuntu4 [152 kB]
Get:27 http://ports.ubuntu.com/ubuntu-ports/ quantal/main apport-gtk all 2.2.3-0ubuntu4 [9,294 B]
Get:28 http://ports.ubuntu.com/ubuntu-ports/ quantal/main bluez-alsa powerpc 4.99-2ubuntu2 [140 kB]
Get:29 http://ports.ubuntu.com/ubuntu-ports/ quantal/main bluez-cups powerpc 4.99-2ubuntu2 [67.4 kB]
Get:30 http://ports.ubuntu.com/ubuntu-ports/ quantal/main bluez-gstreamer powerpc 4.99-2ubuntu2 [114 kB]
Get:31 http://ports.ubuntu.com/ubuntu-ports/ quantal/main indicator-session powerpc 0.3.96-0ubuntu2 [74.9 kB]
Get:32 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libmailtools-perl all 2.09-1 [83.9 kB]
Get:33 http://ports.ubuntu.com/ubuntu-ports/ quantal/main telepathy-mission-control-5 powerpc 1:5.12.0-0ubuntu5 [180 kB]
Get:34 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libmission-control-plugins0 powerpc 1:5.12.0-0ubuntu5 [17.3 kB]
Get:35 http://ports.ubuntu.com/ubuntu-ports/ quantal/main libnautilus-extension1a powerpc 1:3.5.2-0ubuntu2 [49.9 kB]
Get:36 http://ports.ubuntu.com/ubuntu-ports/ quantal/main mtools powerpc 4.0.17-1 [187 kB]
Get:37 http://ports.ubuntu.com/ubuntu-ports/ quantal/main nautilus-data all 1:3.5.2-0ubuntu2 [61.4 kB]
Get:38 http://ports.ubuntu.com/ubuntu-ports/ quantal/main notify-osd powerpc 0.9.34-0ubuntu3 [116 kB]
Get:39 http://ports.ubuntu.com/ubuntu-ports/ quantal/main python-problem-report all 2.2.3-0ubuntu4 [12.2 kB]
Get:40 http://ports.ubuntu.com/ubuntu-ports/ quantal/main python-apport all 2.2.3-0ubuntu4 [80.8 kB]
Get:41 http://ports.ubuntu.com/ubuntu-ports/ quantal/main python-cups powerpc 1.9.61-0ubuntu3 [60.8 kB]
Get:42 http://ports.ubuntu.com/ubuntu-ports/ quantal/main xinit powerpc 1.3.2-1 [18.7 kB]
Get:43 http://ports.ubuntu.com/ubuntu-ports/ quantal/main xserver-xorg-video-nouveau powerpc 1:0.0.16+git20120614+36d3f8c-1 [102 kB]
Fetched 10.0 MB in 19s (502 kB/s)
Extracting templates from packages: 100%
(Reading database ... 208325 files and directories currently installed.)
Removing php5-xcache ...
/var/lib/dpkg/info/php5-xcache.postrm: 6: /var/lib/dpkg/info/php5-xcache.postrm: php5dismod: not found
dpkg: error processing php5-xcache (--remove):
subprocess installed post-removal script returned error exit status 127
No apport report written because MaxReports is reached already
Errors were encountered while processing:
php5-xcache
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/home/drcdhardy# sudo dpkg --remove --force-remove-reinstreq nscd
dpkg: warning: there's no installed package matching nscd
root@ubuntu:/home/drcdhardy# sudo dpkg --remove --force-remove-reinstreq php5-xcache
(Reading database ... 208325 files and directories currently installed.)
Removing php5-xcache ...
/var/lib/dpkg/info/php5-xcache.postrm: 6: /var/lib/dpkg/info/php5-xcache.postrm: php5dismod: not found
dpkg: error processing php5-xcache (--remove):
subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
php5-xcache
root@ubuntu:/home/drcdhardy# sudo dpkg --configure -a
Setting up qmail (1.06-5) ...
The hostname -f command returned: $1
Your system needs to have a fully qualified domain name (fqdn) in
order to install the var-qmail packages.
Installation aborted.
dpkg: error processing qmail (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
qmail
You have new mail in /var/mail/root
root@ubuntu:/home/drcdhardy# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.4.0-3 linux-headers-3.4.0-3-powerpc-smp
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
php5-xcache
0 upgraded, 0 newly installed, 1 to remove and 48 not upgraded.
2 not fully installed or removed.
After this operation, 295 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 208325 files and directories currently installed.)
Removing php5-xcache ...
/var/lib/dpkg/info/php5-xcache.postrm: 6: /var/lib/dpkg/info/php5-xcache.postrm: php5dismod: not found
dpkg: error processing php5-xcache (--remove):
subprocess installed post-removal script returned error exit status 127
No apport report written because MaxReports is reached already
Errors were encountered while processing:
php5-xcache
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/home/drcdhardy#
S.O.S Please!!!!!!!!!!!!!!!!!!!!