Trying to troubleshoot the package manager

Asked by apoyoman

apoyoman@upoyo:~$ ubuntu-support-status
Support status summary of 'upoyo':

You have 120 packages (5.1%) supported until October 2013 (18m)
You have 1849 packages (78.2%) supported until April 2017 (5y)
You have 34 packages (1.4%) supported until April 2017 (18m)

You have 51 packages (2.2%) that can not/no-longer be downloaded
You have 311 packages (13.2%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details

apoyoman@upoyo:~$ sudo cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory

 dpkg --print-foreign-architectures

apoyoman@upoyo:~$ sudo grep -R proxy /etc/apt/*
apoyoman@upoyo:~$

apoyoman@upoyo:~$ grep proxy /etc/environment
apoyoman@upoyo:~$

apoyoman@upoyo:~$ echo $http_proxy

apoyoman@upoyo:~$ echo $ftp_proxy

apoyoman@upoyo:~$ grep proxy /etc/bash.bashrc
apoyoman@upoyo:~$

apoyoman@upoyo:~$ grep proxy ~/.bashrc
apoyoman@upoyo:~$

apoyoman@upoyo:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory

apoyoman@upoyo:~$ sudo fuser -vvv /var/lib/dpkg/lock
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo fuser -vvv /var/cache/apt/archives/lock
apoyoman@upoyo:~$

apoyoman@upoyo:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"

apoyoman@upoyo:~$ uname -a
Linux upoyo 3.2.0-90-generic-pae #128-Ubuntu SMP Fri Aug 14 22:16:51 UTC 2015 i686 i686 i386 GNU/Linux

apoyoman@upoyo:~$ sudo rm /var/lib/apt/lists/lock
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo rm /var/cache/apt/archives/lock
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo rm /var/lib/dpkg/lock
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
apoyoman@upoyo:~$

apoyoman@upoyo:~$ sudo rm -rf /var/lib/dpkg/updates/*
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo rm -rf /var/lib/apt/lists
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo rm /var/cache/apt/*.bin
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo mkdir /var/lib/apt/lists
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo mkdir /var/lib/apt/lists/partial
apoyoman@upoyo:~$ LANG=C;sudo apt-get clean
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
apoyoman@upoyo:~$
apoyoman@upoyo:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of mysql-server-5.5:
 mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.40-0ubuntu0.12.04.1); however:
  Version of mysql-server-core-5.5 on system is 5.5.44-0ubuntu0.12.04.1.
dpkg: error processing mysql-server-5.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
apoyoman@upoyo:~$ sudo dpkg --clear-avail
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mysql-server mysql-server-5.5
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 31.4 MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 601691 files and directories currently installed.)
Removing mysql-server ...
Removing mysql-server-5.5 ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:5 http://archive.ubuntu.com precise Release [49.6 kB]
Get:6 http://archive.ubuntu.com precise-updates Release [196 kB]
Get:7 http://archive.ubuntu.com precise-security Release [54.3 kB]
Get:8 http://archive.ubuntu.com precise-backports Release [54.3 kB]
Get:9 http://archive.ubuntu.com precise/main Sources [934 kB]
Get:10 http://archive.ubuntu.com precise/universe Sources [5019 kB]
Get:11 http://archive.ubuntu.com precise/restricted Sources [5470 B]
Get:12 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:13 http://archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:14 http://archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:15 http://archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:16 http://archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:17 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:18 http://archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:19 http://archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:20 http://archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:21 http://archive.ubuntu.com precise-updates/main Sources [492 kB]
Get:22 http://archive.ubuntu.com precise-updates/universe Sources [122 kB]
Get:23 http://archive.ubuntu.com precise-updates/restricted Sources [8723 B]
Get:24 http://archive.ubuntu.com precise-updates/multiverse Sources [9723 B]
Get:25 http://archive.ubuntu.com precise-updates/main i386 Packages [986 kB]
Get:26 http://archive.ubuntu.com precise-updates/universe i386 Packages [278 kB]
Get:27 http://archive.ubuntu.com precise-updates/restricted i386 Packages [16.1 kB]
Get:28 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [16.7 kB]
Get:29 http://archive.ubuntu.com precise-updates/main TranslationIndex [10.6 kB]
Get:30 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [7613 B]
Get:31 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [7297 B]
Get:32 http://archive.ubuntu.com precise-updates/universe TranslationIndex [8333 B]
Get:33 http://archive.ubuntu.com precise-security/main Sources [135 kB]
Get:34 http://archive.ubuntu.com precise-security/universe Sources [43.9 kB]
Get:35 http://archive.ubuntu.com precise-security/restricted Sources [4464 B]
Get:36 http://archive.ubuntu.com precise-security/multiverse Sources [2201 B]
Get:37 http://archive.ubuntu.com precise-security/main i386 Packages [604 kB]
Get:38 http://archive.ubuntu.com precise-security/universe i386 Packages [132 kB]
Get:39 http://archive.ubuntu.com precise-security/restricted i386 Packages [11.6 kB]
Get:40 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2880 B]
Get:41 http://archive.ubuntu.com precise-security/main TranslationIndex [208 B]
Get:42 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
Get:43 http://archive.ubuntu.com precise-security/restricted TranslationIndex [202 B]
Get:44 http://archive.ubuntu.com precise-security/universe TranslationIndex [205 B]
Get:45 http://archive.ubuntu.com precise-backports/main Sources [5411 B]
Get:46 http://archive.ubuntu.com precise-backports/universe Sources [42.8 kB]
Get:47 http://archive.ubuntu.com precise-backports/restricted Sources [28 B]
Get:48 http://archive.ubuntu.com precise-backports/multiverse Sources [5750 B]
Get:49 http://archive.ubuntu.com precise-backports/main i386 Packages [5484 B]
Get:50 http://archive.ubuntu.com precise-backports/universe i386 Packages [44.0 kB]
Get:51 http://archive.ubuntu.com precise-backports/restricted i386 Packages [28 B]
Get:52 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [5413 B]
Get:53 http://archive.ubuntu.com precise-backports/main TranslationIndex [202 B]
Get:54 http://archive.ubuntu.com precise-backports/multiverse TranslationIndex [202 B]
Get:55 http://archive.ubuntu.com precise-backports/restricted TranslationIndex [193 B]
Get:56 http://archive.ubuntu.com precise-backports/universe TranslationIndex [205 B]
Get:57 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:58 http://archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:59 http://archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:60 http://archive.ubuntu.com precise/universe Translation-en [3341 kB]
Get:61 http://archive.ubuntu.com precise-updates/main Translation-en [406 kB]
Get:62 http://archive.ubuntu.com precise-updates/multiverse Translation-en [9603 B]
Get:63 http://archive.ubuntu.com precise-updates/restricted Translation-en [3857 B]
Get:64 http://archive.ubuntu.com precise-updates/universe Translation-en [160 kB]
Get:65 http://archive.ubuntu.com precise-security/main Translation-en [239 kB]
Get:66 http://archive.ubuntu.com precise-security/multiverse Translation-en [1408 B]
Get:67 http://archive.ubuntu.com precise-security/restricted Translation-en [2979 B]
Get:68 http://archive.ubuntu.com precise-security/universe Translation-en [78.0 kB]
Get:69 http://archive.ubuntu.com precise-backports/main Translation-en [4911 B]
Get:70 http://archive.ubuntu.com precise-backports/multiverse Translation-en [4838 B]
Get:71 http://archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:72 http://archive.ubuntu.com precise-backports/universe Translation-en [35.0 kB]
Fetched 20.8 MB in 38s (547 kB/s)
Reading package lists... Done
apoyoman@upoyo:~$
apoyoman@upoyo:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://archive.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise-backports Release
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/multiverse Sources
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/universe i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.2.0-91 linux-headers-3.2.0-91-generic linux-headers-3.2.0-91-generic-pae linux-image-3.2.0-91-generic-pae
The following packages will be upgraded:
  apport apport-gtk dkms firefox firefox-globalmenu firefox-locale-en gir1.2-gdkpixbuf-2.0 gir1.2-gudev-1.0 jockey-common jockey-gtk
  libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgudev-1.0-0 libudev0 linux-generic-pae linux-headers-generic linux-headers-generic-pae
  linux-image-generic-pae linux-libc-dev python-apport python-problem-report thunderbird thunderbird-globalmenu thunderbird-gnome-support
  ubufox udev xul-ext-ubufox
27 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 145 MB of archives.
After this operation, 195 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libudev0 i386 175-0ubuntu9.10 [31.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgdk-pixbuf2.0-0 i386 2.26.1-1ubuntu1.3 [195 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgdk-pixbuf2.0-common all 2.26.1-1ubuntu1.3 [7974 B]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgudev-1.0-0 i386 1:175-0ubuntu9.10 [14.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-3.2.0-91-generic-pae i386 3.2.0-91.129 [38.6 MB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main udev i386 175-0ubuntu9.10 [349 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-problem-report all 2.0.1-0ubuntu17.11 [9982 B]
Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-apport all 2.0.1-0ubuntu17.11 [81.8 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main apport all 2.0.1-0ubuntu17.11 [149 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main apport-gtk all 2.0.1-0ubuntu17.11 [9192 B]
Get:11 http://archive.ubuntu.com/ubuntu/ precise-updates/main dkms all 2.2.0.3-1ubuntu3.6 [73.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox i386 41.0.1+build2-0ubuntu0.12.04.1 [49.2 MB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-globalmenu i386 41.0.1+build2-0ubuntu0.12.04.1 [8958 B]
Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main firefox-locale-en i386 41.0.1+build2-0ubuntu0.12.04.1 [826 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main gir1.2-gdkpixbuf-2.0 i386 2.26.1-1ubuntu1.3 [8836 B]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main gir1.2-gudev-1.0 i386 175-0ubuntu9.10 [3988 B]
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main jockey-gtk all 0.9.7-0ubuntu7.16 [8824 B]
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main jockey-common all 0.9.7-0ubuntu7.16 [135 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-generic-pae i386 3.2.0.91.105 [1728 B]
Get:20 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-generic-pae i386 3.2.0.91.105 [2284 B]
Get:21 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-91 all 3.2.0-91.129 [11.7 MB]
Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-91-generic-pae i386 3.2.0-91.129 [981 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic-pae i386 3.2.0.91.105 [2286 B]
Get:24 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-91-generic i386 3.2.0-91.129 [980 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic i386 3.2.0.91.105 [2272 B]
Get:26 http://archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev i386 3.2.0-91.129 [860 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird i386 1:38.3.0+build1-0ubuntu0.12.04.1 [40.4 MB]
Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-gnome-support i386 1:38.3.0+build1-0ubuntu0.12.04.1 [9130 B]
Get:29 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-globalmenu i386 1:38.3.0+build1-0ubuntu0.12.04.1 [8788 B]
Get:30 http://archive.ubuntu.com/ubuntu/ precise-updates/main xul-ext-ubufox all 3.2-0ubuntu0.12.04.1 [35.5 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ precise-updates/universe ubufox all 3.2-0ubuntu0.12.04.1 [1198 B]
Fetched 145 MB in 1min 41s (1430 kB/s)
Extracting templates from packages: 100%
(Reading database ... 601613 files and directories currently installed.)
Preparing to replace libudev0 175-0ubuntu9.9 (using .../libudev0_175-0ubuntu9.10_i386.deb) ...
Unpacking replacement libudev0 ...
Preparing to replace libgdk-pixbuf2.0-0 2.26.1-1ubuntu1.2 (using .../libgdk-pixbuf2.0-0_2.26.1-1ubuntu1.3_i386.deb) ...
Unpacking replacement libgdk-pixbuf2.0-0 ...
Preparing to replace libgdk-pixbuf2.0-common 2.26.1-1ubuntu1.2 (using .../libgdk-pixbuf2.0-common_2.26.1-1ubuntu1.3_all.deb) ...
Unpacking replacement libgdk-pixbuf2.0-common ...
Preparing to replace libgudev-1.0-0 1:175-0ubuntu9.9 (using .../libgudev-1.0-0_1%3a175-0ubuntu9.10_i386.deb) ...
Unpacking replacement libgudev-1.0-0 ...
Selecting previously unselected package linux-image-3.2.0-91-generic-pae.
Unpacking linux-image-3.2.0-91-generic-pae (from .../linux-image-3.2.0-91-generic-pae_3.2.0-91.129_i386.deb) ...
Done.
Preparing to replace udev 175-0ubuntu9.9 (using .../udev_175-0ubuntu9.10_i386.deb) ...
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
Unpacking replacement udev ...
Preparing to replace python-problem-report 2.0.1-0ubuntu17.9 (using .../python-problem-report_2.0.1-0ubuntu17.11_all.deb) ...
Unpacking replacement python-problem-report ...
Preparing to replace python-apport 2.0.1-0ubuntu17.9 (using .../python-apport_2.0.1-0ubuntu17.11_all.deb) ...
Unpacking replacement python-apport ...
Preparing to replace apport 2.0.1-0ubuntu17.9 (using .../apport_2.0.1-0ubuntu17.11_all.deb) ...
apport stop/waiting
Unpacking replacement apport ...
Preparing to replace apport-gtk 2.0.1-0ubuntu17.9 (using .../apport-gtk_2.0.1-0ubuntu17.11_all.deb) ...
Unpacking replacement apport-gtk ...
Preparing to replace dkms 2.2.0.3-1ubuntu3.3 (using .../dkms_2.2.0.3-1ubuntu3.6_all.deb) ...
Unpacking replacement dkms ...
Preparing to replace firefox 40.0.3+build1-0ubuntu0.12.04.1 (using .../firefox_41.0.1+build2-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement firefox ...
Preparing to replace firefox-globalmenu 40.0.3+build1-0ubuntu0.12.04.1 (using .../firefox-globalmenu_41.0.1+build2-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement firefox-globalmenu ...
Preparing to replace firefox-locale-en 40.0.3+build1-0ubuntu0.12.04.1 (using .../firefox-locale-en_41.0.1+build2-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement firefox-locale-en ...
Preparing to replace gir1.2-gdkpixbuf-2.0 2.26.1-1ubuntu1.2 (using .../gir1.2-gdkpixbuf-2.0_2.26.1-1ubuntu1.3_i386.deb) ...
Unpacking replacement gir1.2-gdkpixbuf-2.0 ...
Preparing to replace gir1.2-gudev-1.0 175-0ubuntu9.9 (using .../gir1.2-gudev-1.0_175-0ubuntu9.10_i386.deb) ...
Unpacking replacement gir1.2-gudev-1.0 ...
Preparing to replace jockey-gtk 0.9.7-0ubuntu7.14 (using .../jockey-gtk_0.9.7-0ubuntu7.16_all.deb) ...
Unpacking replacement jockey-gtk ...
Preparing to replace jockey-common 0.9.7-0ubuntu7.14 (using .../jockey-common_0.9.7-0ubuntu7.16_all.deb) ...
Unpacking replacement jockey-common ...
Preparing to replace linux-generic-pae 3.2.0.90.104 (using .../linux-generic-pae_3.2.0.91.105_i386.deb) ...
Unpacking replacement linux-generic-pae ...
Preparing to replace linux-image-generic-pae 3.2.0.90.104 (using .../linux-image-generic-pae_3.2.0.91.105_i386.deb) ...
Unpacking replacement linux-image-generic-pae ...
Selecting previously unselected package linux-headers-3.2.0-91.
Unpacking linux-headers-3.2.0-91 (from .../linux-headers-3.2.0-91_3.2.0-91.129_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-91-generic-pae.
Unpacking linux-headers-3.2.0-91-generic-pae (from .../linux-headers-3.2.0-91-generic-pae_3.2.0-91.129_i386.deb) ...
Preparing to replace linux-headers-generic-pae 3.2.0.90.104 (using .../linux-headers-generic-pae_3.2.0.91.105_i386.deb) ...
Unpacking replacement linux-headers-generic-pae ...
Selecting previously unselected package linux-headers-3.2.0-91-generic.
Unpacking linux-headers-3.2.0-91-generic (from .../linux-headers-3.2.0-91-generic_3.2.0-91.129_i386.deb) ...
Preparing to replace linux-headers-generic 3.2.0.90.104 (using .../linux-headers-generic_3.2.0.91.105_i386.deb) ...
Unpacking replacement linux-headers-generic ...
Preparing to replace linux-libc-dev 3.2.0-90.128 (using .../linux-libc-dev_3.2.0-91.129_i386.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace thunderbird 1:38.2.0+build1-0ubuntu0.12.04.2 (using .../thunderbird_1%3a38.3.0+build1-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement thunderbird ...
Preparing to replace thunderbird-gnome-support 1:38.2.0+build1-0ubuntu0.12.04.2 (using .../thunderbird-gnome-support_1%3a38.3.0+build1-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement thunderbird-gnome-support ...
Preparing to replace thunderbird-globalmenu 1:38.2.0+build1-0ubuntu0.12.04.2 (using .../thunderbird-globalmenu_1%3a38.3.0+build1-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement thunderbird-globalmenu ...
Preparing to replace xul-ext-ubufox 3.1-0ubuntu0.12.04.1 (using .../xul-ext-ubufox_3.2-0ubuntu0.12.04.1_all.deb) ...
Unpacking replacement xul-ext-ubufox ...
Preparing to replace ubufox 3.1-0ubuntu0.12.04.1 (using .../ubufox_3.2-0ubuntu0.12.04.1_all.deb) ...
Unpacking replacement ubufox ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Setting up libudev0 (175-0ubuntu9.10) ...
Setting up libgdk-pixbuf2.0-common (2.26.1-1ubuntu1.3) ...
Setting up libgdk-pixbuf2.0-0 (2.26.1-1ubuntu1.3) ...
Setting up libgudev-1.0-0 (1:175-0ubuntu9.10) ...
Setting up linux-image-3.2.0-91-generic-pae (3.2.0-91.129) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-91-generic-pae
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-91-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-91-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-90-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-90-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-70-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-70-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-68-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-68-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-67-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-67-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-65-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-65-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-64-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-64-generic-pae
Found memtest86+ image: /memtest86+.bin
Found Red Hat Linux release 9 (Shrike) on /dev/sda5
done
Setting up udev (175-0ubuntu9.10) ...
udev stop/waiting
udev start/running, process 18301
Removing 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up python-problem-report (2.0.1-0ubuntu17.11) ...
Setting up python-apport (2.0.1-0ubuntu17.11) ...
Setting up apport (2.0.1-0ubuntu17.11) ...
apport start/running
Setting up apport-gtk (2.0.1-0ubuntu17.11) ...
Setting up dkms (2.2.0.3-1ubuntu3.6) ...
Setting up firefox (41.0.1+build2-0ubuntu0.12.04.1) ...
Installing new version of config file /etc/apport/blacklist.d/firefox ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-globalmenu (41.0.1+build2-0ubuntu0.12.04.1) ...
Setting up firefox-locale-en (41.0.1+build2-0ubuntu0.12.04.1) ...
Setting up gir1.2-gdkpixbuf-2.0 (2.26.1-1ubuntu1.3) ...
Setting up gir1.2-gudev-1.0 (175-0ubuntu9.10) ...
Setting up jockey-common (0.9.7-0ubuntu7.16) ...
Setting up jockey-gtk (0.9.7-0ubuntu7.16) ...
Setting up linux-image-generic-pae (3.2.0.91.105) ...
Setting up linux-headers-3.2.0-91 (3.2.0-91.129) ...
Setting up linux-headers-3.2.0-91-generic-pae (3.2.0-91.129) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-91-generic-pae /boot/vmlinuz-3.2.0-91-generic-pae
Setting up linux-headers-generic-pae (3.2.0.91.105) ...
Setting up linux-generic-pae (3.2.0.91.105) ...
Setting up linux-headers-3.2.0-91-generic (3.2.0-91.129) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-91-generic /boot/vmlinuz-3.2.0-91-generic
Setting up linux-headers-generic (3.2.0.91.105) ...
Setting up linux-libc-dev (3.2.0-91.129) ...
Setting up thunderbird (1:38.3.0+build1-0ubuntu0.12.04.1) ...
Installing new version of config file /etc/apport/blacklist.d/thunderbird ...
Setting up thunderbird-gnome-support (1:38.3.0+build1-0ubuntu0.12.04.1) ...
Setting up thunderbird-globalmenu (1:38.3.0+build1-0ubuntu0.12.04.1) ...
Setting up xul-ext-ubufox (3.2-0ubuntu0.12.04.1) ...
Setting up ubufox (3.2-0ubuntu0.12.04.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-91-generic-pae
apoyoman@upoyo:~$
apoyoman@upoyo:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 #
     2 # deb cdrom:[Ubuntu-Server 10.04.1 LTS _Lucid Lynx_ - Release i386 (20100816.2)]/ lucid main restricted
     3
     4 # deb cdrom:[Ubuntu-Server 10.04.1 LTS _Lucid Lynx_ - Release i386 (20100816.2)]/ lucid main restricted
     5 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     6 # newer versions of the distribution.
     7
     8 deb http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse
     9 deb-src http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse #Added by software-properties
    10
    11 ## Major bug fix updates produced after the final release of the
    12 ## distribution.
    13 deb http://archive.ubuntu.com/ubuntu precise-updates main universe restricted multiverse
    14 deb-src http://archive.ubuntu.com/ubuntu precise-updates main universe restricted multiverse #Added by software-properties
    15
    16 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    17 ## team. Also, please note that software in universe WILL NOT receive any
    18 ## review or updates from the Ubuntu security team.
    19
    20 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    21 ## team, and may not be under a free licence. Please satisfy yourself as to
    22 ## your rights to use the software. Also, please note that software in
    23 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    24 ## security team.
    25
    26 ## Uncomment the following two lines to add software from the 'backports'
    27 ## repository.
    28 ## N.B. software from this repository may not have been tested as
    29 ## extensively as that contained in the main release, although it includes
    30 ## newer versions of some applications which may provide useful features.
    31 ## Also, please note that software in backports WILL NOT receive any review
    32 ## or updates from the Ubuntu security team.
    33 # deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    34 # deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    35
    36 ## Uncomment the following two lines to add software from Canonical's
    37 ## 'partner' repository.
    38 ## This software is not part of Ubuntu, but is offered by Canonical and the
    39 ## respective vendors as a service to Ubuntu users.
    40 # deb http://archive.canonical.com/ubuntu lucid partner
    41 # deb-src http://archive.canonical.com/ubuntu lucid partner
    42
    43 deb http://archive.ubuntu.com/ubuntu precise-security main universe restricted multiverse
    44 deb-src http://archive.ubuntu.com/ubuntu precise-security main universe restricted multiverse #Added by software-properties
    45 # deb http://extras.ubuntu.com/ubuntu precise main #Third party developers repository
    46 deb http://archive.ubuntu.com/ubuntu precise-backports main universe restricted multiverse
    47 deb-src http://archive.ubuntu.com/ubuntu precise-backports main universe restricted multiverse #Added by software-properties

/etc/apt/sources.list.d/google-chrome.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://dl.google.com/linux/chrome/deb/ stable main

/etc/apt/sources.list.d/maverick-partner.list

     1 # deb http://archive.canonical.com/ubuntu precise partner #Added by software-center
apoyoman@upoyo:~$

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
apoyoman (apoyoman) said :
#1

I am following instructions to debug the package manager. Will await further instructions from the experts before doing anything else...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Not seeing any issues at all. If you run:

sudo apt-get --reinstall install nano

Is it OK?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Running the troubleshooting procedure seems to have solved the dependency conflict that you had - by removing the mysql-server and mysql-server-5.5 packages.

If you need the mysql-server(-5.5) packages, you should be able to re-install them now without problem.

what is the output of the command

apt-get --simulate install mysql-server

Revision history for this message
apoyoman (apoyoman) said :
#4

Hi, based upon your responses, I tried the following:

apoyoman@upoyo:~/Documents$ LANG=C;sudo apt-get --simulate install mysql-server
[sudo] password for apoyoman:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mysql-server-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst mysql-server-5.5 (5.5.44-0ubuntu0.12.04.1 Ubuntu:12.04/precise-updates [i386])
Inst mysql-server (5.5.44-0ubuntu0.12.04.1 Ubuntu:12.04/precise-updates [all])
Conf mysql-server-5.5 (5.5.44-0ubuntu0.12.04.1 Ubuntu:12.04/precise-updates [i386])
Conf mysql-server (5.5.44-0ubuntu0.12.04.1 Ubuntu:12.04/precise-updates [all])

My interpretation of the above was that everything was ok. So I did this:

apoyoman@upoyo:~/Documents$ LANG=C;sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mysql-server-5.5
Suggested packages:
  tinyca mailx
The following NEW packages will be installed:
  mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 8731 kB of archives.
After this operation, 31.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-5.5 i386 5.5.44-0ubuntu0.12.04.1 [8720 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server all 5.5.44-0ubuntu0.12.04.1 [11.1 kB]
Fetched 8731 kB in 6s (1266 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 636768 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.44-0ubuntu0.12.04.1_i386.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.44-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.5 (5.5.44-0ubuntu0.12.04.1) ...
151014 15:46:24 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
151014 15:46:24 [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line

151014 15:46:24 [Note] /usr/sbin/mysqld (mysqld 5.5.44-0ubuntu0.12.04.1) starting as process 2423 ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
apoyoman@upoyo:~/Documents$

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Your second step of trying the real installation after the successful simulation was the correct idea.
Alas the real installation fails without apparent reason.

I am sorry, but I am not sure how that problem can be best tackled.

Do you need MySQL on that system? If not, you could remove the failing packages again.

Revision history for this message
apoyoman (apoyoman) said :
#6

Wow. Does this mean that I should run the debugging procedure over again in order to get rid of mysql? I tried:

apoyoman@upoyo:~$ LANG=C;sudo apt-get purge mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.5 (5.5.44-0ubuntu0.12.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
apoyoman (apoyoman) said :
#7

Even if I try to install a game, I get the same error:

apoyoman@upoyo:~$ LANG=C;sudo apt-get install xvier
Reading package lists... Done
Building dependency tree
Reading state information... Done
xvier is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up mysql-server-5.5 (5.5.44-0ubuntu0.12.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

sudo dpkg --purge mysql-server-5.5 mysql-server

should serve as quickest command to remove the failing packages.

Maybe another diagnostic command sheds some more light on the root cause of your problem:
what is the output of

dpkg -l | grep mysql

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.