PackageManagerTroubleshooting

Asked by Kevin Collins

I am running Initial diagnostics for better performance. This particular task is an attempt to fix broken packages. Below is the full Terminal output from running a list of diagnostic commands.

wyatt@wyatt-HP-2000-Notebook-PC:~$ ubuntu-support-status
Support status summary of 'wyatt-HP-2000-Notebook-PC':

You have 27 packages (1.2%) supported until February 2015 (9m)
You have 2014 packages (90.0%) supported until May 2019 (5y)
You have 4 packages (0.2%) supported until March 2015 (9m)
You have 79 packages (3.5%) supported until May 2017 (3y)

You have 46 packages (2.1%) that can not/no-longer be downloaded
You have 68 packages (3.0%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
wyatt@wyatt-HP-2000-Notebook-PC:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
wyatt@wyatt-HP-2000-Notebook-PC:~$ dpkg --print-foreign-architectures
i386
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for wyatt:
wyatt@wyatt-HP-2000-Notebook-PC:~$ grep proxy /etc/environment
wyatt@wyatt-HP-2000-Notebook-PC:~$ echo $http_proxy

wyatt@wyatt-HP-2000-Notebook-PC:~$ echo $ftp_proxy

wyatt@wyatt-HP-2000-Notebook-PC:~$ grep proxy /etc/bash.bashrc
wyatt@wyatt-HP-2000-Notebook-PC:~$ grep proxy ~/.bashrc
wyatt@wyatt-HP-2000-Notebook-PC:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo fuser -vvv /var/lib/dpkg/lock
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo fuser -vvv /var/cache/apt/archives/lock
wyatt@wyatt-HP-2000-Notebook-PC:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
wyatt@wyatt-HP-2000-Notebook-PC:~$ uname -a
Linux wyatt-HP-2000-Notebook-PC 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm /var/lib/apt/lists/lock
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm /var/cache/apt/archives/lock
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm /var/lib/dpkg/lock
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm -rf /var/lib/dpkg/updates/*
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm -rf /var/lib/apt/lists
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo rm /var/cache/apt/*.bin
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo mkdir /var/lib/apt/lists
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo mkdir /var/lib/apt/lists/partial
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get clean
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  kde-l10n-engb* libtagc0*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 9973 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 224862 files and directories currently installed.)
Removing kde-l10n-engb (4:4.13.0-0ubuntu1) ...
Removing libtagc0:amd64 (1.9.1-2) ...
Purging configuration files for libtagc0:amd64 (1.9.1-2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Setting up initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-29-generic
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign http://dl.google.com stable InRelease
Ign http://us.archive.ubuntu.com trusty InRelease
Get:1 http://dl.google.com stable Release.gpg [198 B]
Ign http://extras.ubuntu.com trusty InRelease
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Get:2 http://dl.google.com stable Release [1347 B]
Ign http://security.ubuntu.com trusty-security InRelease
Get:3 http://us.archive.ubuntu.com trusty Release.gpg [933 B]
Get:4 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:5 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:6 http://dl.google.com stable/main amd64 Packages [1225 B]
Get:7 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Get:8 http://us.archive.ubuntu.com trusty Release [58.5 kB]
Get:9 http://extras.ubuntu.com trusty Release [11.9 kB]
Get:10 http://dl.google.com stable/main i386 Packages [1217 B]
Get:11 http://security.ubuntu.com trusty-security Release [58.5 kB]
Get:12 http://extras.ubuntu.com trusty/main Sources [14 B]
Get:13 http://extras.ubuntu.com trusty/main amd64 Packages [14 B]
Get:14 http://us.archive.ubuntu.com trusty-updates Release [58.5 kB]
Get:15 http://extras.ubuntu.com trusty/main i386 Packages [14 B]
Ign http://dl.google.com stable/main Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:16 http://security.ubuntu.com trusty-security/main Sources [17.0 kB]
Get:17 http://us.archive.ubuntu.com trusty/main Sources [1064 kB]
Get:18 http://security.ubuntu.com trusty-security/restricted Sources [14 B]
Get:19 http://security.ubuntu.com trusty-security/universe Sources [4212 B]
Get:20 http://security.ubuntu.com trusty-security/multiverse Sources [688 B]
Get:21 http://security.ubuntu.com trusty-security/main amd64 Packages [55.1 kB]
Get:22 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14 B]
Get:23 http://security.ubuntu.com trusty-security/universe amd64 Packages [17.9 kB]
Get:24 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [1157 B]
Get:25 http://security.ubuntu.com trusty-security/main i386 Packages [52.4 kB]
Get:26 http://security.ubuntu.com trusty-security/restricted i386 Packages [14 B]
Get:27 http://security.ubuntu.com trusty-security/universe i386 Packages [17.9 kB]
Get:28 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1392 B]
Get:29 http://security.ubuntu.com trusty-security/main Translation-en [26.4 kB]
Get:30 http://security.ubuntu.com trusty-security/multiverse Translation-en [587 B]
Get:31 http://security.ubuntu.com trusty-security/restricted Translation-en [14 B]
Get:32 http://security.ubuntu.com trusty-security/universe Translation-en [11.9 kB]
Get:33 http://us.archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:34 http://us.archive.ubuntu.com trusty/universe Sources [6399 kB]
Get:35 http://us.archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:36 http://us.archive.ubuntu.com trusty/main amd64 Packages [1350 kB]
Get:37 http://us.archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:38 http://us.archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
Get:39 http://us.archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:40 http://us.archive.ubuntu.com trusty/main i386 Packages [1348 kB]
Get:41 http://us.archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:42 http://us.archive.ubuntu.com trusty/universe i386 Packages [5866 kB]
Get:43 http://us.archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:44 http://us.archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:45 http://us.archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:46 http://us.archive.ubuntu.com trusty/restricted Translation-en [3457 B]
Get:47 http://us.archive.ubuntu.com trusty/universe Translation-en [4089 kB]
Get:48 http://us.archive.ubuntu.com trusty-updates/main Sources [59.6 kB]
Get:49 http://us.archive.ubuntu.com trusty-updates/restricted Sources [14 B]
Get:50 http://us.archive.ubuntu.com trusty-updates/universe Sources [30.1 kB]
Get:51 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [2228 B]
Get:52 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [148 kB]
Get:53 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B]
Get:54 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [81.0 kB]
Get:55 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [7090 B]
Get:56 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [144 kB]
Get:57 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [14 B]
Get:58 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [81.4 kB]
Get:59 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [7282 B]
Get:60 http://us.archive.ubuntu.com trusty-updates/main Translation-en [69.4 kB]
Get:61 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [3811 B]
Get:62 http://us.archive.ubuntu.com trusty-updates/restricted Translation-en [14 B]
Get:63 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [39.9 kB]
Fetched 28.4 MB in 4min 13s (112 kB/s)
Reading package lists... Done
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo dpkg --configure -a
Processing triggers for menu (2.1.46ubuntu1) ...
wyatt@wyatt-HP-2000-Notebook-PC:~$ sudo dpkg --clear-avail
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
wyatt@wyatt-HP-2000-Notebook-PC:~$ 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.
wyatt@wyatt-HP-2000-Notebook-PC:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign http://us.archive.ubuntu.com trusty InRelease
Ign http://dl.google.com stable InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://dl.google.com stable Release.gpg
Hit http://us.archive.ubuntu.com trusty Release.gpg
Ign http://extras.ubuntu.com trusty InRelease
Hit http://dl.google.com stable Release
Hit http://us.archive.ubuntu.com trusty-updates Release.gpg
Hit http://us.archive.ubuntu.com trusty Release
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://dl.google.com stable/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates Release
Hit http://dl.google.com stable/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://extras.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security Release
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Ign http://dl.google.com stable/main Translation-en
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/main Sources
Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://us.archive.ubuntu.com trusty-updates/universe Sources
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
wyatt@wyatt-HP-2000-Notebook-PC:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

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

/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/noobslab-mint-trusty.list

     1 # deb http://ppa.launchpad.net/noobslab/mint/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/noobslab/mint/ubuntu trusty main

/etc/apt/sources.list.d/mc3man-trusty-media-trusty.list

     1 # deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
wyatt@wyatt-HP-2000-Notebook-PC:~$

Question information

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

Looks fine. Any errors left? If not, please set the thread status to "solved". Thanks.

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

Looks fine after the commands you ran. What is the output of :

sudo apt-get --reinstall install nano

Thanks

Can you help with this problem?

Provide an answer of your own, or ask Kevin Collins for more information if necessary.

To post a message you must log in.