Packagemanger error - troubleshooting

Asked by Barry Johnston on 2016-05-14

All started with error message for video playback.

"no video with supported format and mime type found"

Looking in the forums people were suggesting that i need to install flash.

When installing flash i got package manager error message which led me to the trouble shooting page followed instructions up to point where it said to post here.

From terminal;

barry@barry-Lenovo-G50-30:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
barry@barry-Lenovo-G50-30:~$ ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 122, in <module>
    with apt.Cache() as cache:
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 113, in __init__
    self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 165, in open
    self._depcache = apt_pkg.DepCache(self._cache)
SystemError: E:The package ubuntu-release-upgrader-core needs to be reinstalled, but I can't find an archive for it.
barry@barry-Lenovo-G50-30:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
barry@barry-Lenovo-G50-30:~$ dpkg --print-foreign-architectures
i386
barry@barry-Lenovo-G50-30:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for barry:
barry@barry-Lenovo-G50-30:~$ grep proxy /etc/environment
barry@barry-Lenovo-G50-30:~$ echo $http_proxy

barry@barry-Lenovo-G50-30:~$ echo $ftp_proxy

barry@barry-Lenovo-G50-30:~$ grep proxy /etc/bash.bashrc
barry@barry-Lenovo-G50-30:~$ grep proxy ~/.bashrc
barry@barry-Lenovo-G50-30:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
barry@barry-Lenovo-G50-30:~$ sudo fuser -vvv /var/lib/dpkg/lock
barry@barry-Lenovo-G50-30:~$ sudo fuser -vvv /var/cache/apt/archives/lock
barry@barry-Lenovo-G50-30:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
barry@barry-Lenovo-G50-30:~$ uname -a
Linux barry-Lenovo-G50-30 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
barry@barry-Lenovo-G50-30:~$ sudo rm /var/lib/apt/lists/lock
barry@barry-Lenovo-G50-30:~$ sudo rm /var/cache/apt/archives/lock
barry@barry-Lenovo-G50-30:~$ sudo rm /var/lib/dpkg/lock
barry@barry-Lenovo-G50-30:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
barry@barry-Lenovo-G50-30:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
barry@barry-Lenovo-G50-30:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
barry@barry-Lenovo-G50-30:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
barry@barry-Lenovo-G50-30:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
barry@barry-Lenovo-G50-30:~$ sudo rm -rf /var/lib/dpkg/updates/*
barry@barry-Lenovo-G50-30:~$ sudo rm -rf /var/lib/apt/lists
barry@barry-Lenovo-G50-30:~$ sudo rm /var/cache/apt/*.bin
barry@barry-Lenovo-G50-30:~$ sudo mkdir /var/lib/apt/lists
barry@barry-Lenovo-G50-30:~$ sudo mkdir /var/lib/apt/lists/partial
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get clean
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
barry@barry-Lenovo-G50-30:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
 ubuntu-release-upgrader-gtk depends on ubuntu-release-upgrader-core (= 1:16.04.14); however:
  Package ubuntu-release-upgrader-core is not installed.
 ubuntu-release-upgrader-gtk depends on python3-distupgrade (= 1:16.04.14); however:
  Version of python3-distupgrade on system is 1:16.04.12.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
 dependency problems - leaving unconfigured
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Setting up language-selector-common (0.165.1) ...
Setting up distro-info-data (0.28ubuntu0.1) ...
Setting up libtasn1-6:amd64 (4.7-3ubuntu0.16.04.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up openssl (1.0.2g-1ubuntu4.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for dbus (1.10.6-1ubuntu3) ...
Setting up language-selector-gnome (0.165.1) ...
Errors were encountered while processing:
 ubuntu-release-upgrader-gtk
barry@barry-Lenovo-G50-30:~$ sudo dpkg --clear-avail
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package ubuntu-release-upgrader-core needs to be reinstalled, but I can't find an archive for it.
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package ubuntu-release-upgrader-core needs to be reinstalled, but I can't find an archive for it.
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package ubuntu-release-upgrader-core needs to be reinstalled, but I can't find an archive for it.
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [82.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [93.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3410 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7448 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [85.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [83.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [34.2 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [38.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [39.7 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [64 B]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [64 B]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [64 B]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [26.1 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [26.2 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [16.0 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [1093 B]
Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [9147 B]
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [1176 B]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [1344 B]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [628 B]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [158 B]
Get:42 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [28 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [28 B]
Get:44 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [28 B]
Get:45 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages [28 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial-backports/restricted i386 Packages [28 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-en [28 B]
Get:48 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [28 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [28 B]
Get:50 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [28 B]
Get:51 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages [28 B]
Get:52 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse i386 Packages [28 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse Translation-en [28 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [50.9 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [48.8 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [19.2 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [4820 B]
Get:58 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [17.1 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [64 B]
Get:60 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [64 B]
Get:61 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [64 B]
Get:62 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [158 B]
Get:63 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [7060 B]
Get:64 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [7052 B]
Get:65 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [6272 B]
Get:66 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [199 B]
Get:67 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [1176 B]
Get:68 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [1344 B]
Get:69 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [628 B]
Get:70 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [201 B]
Fetched 36.1 MB in 17s (2011 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
barry@barry-Lenovo-G50-30:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [93.3 kB]
Fetched 188 kB in 0s (204 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ubuntu-release-upgrader-gtk : Depends: ubuntu-release-upgrader-core (= 1:16.04.14) but 1:16.04.12 is installed
                               Depends: python3-distupgrade (= 1:16.04.14) but 1:16.04.12 is installed
E: Unmet dependencies. Try using -f.
barry@barry-Lenovo-G50-30:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial 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://archive.ubuntu.com/ubuntu xenial main restricted
     6 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
    11 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://archive.ubuntu.com/ubuntu xenial universe
    19 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial universe
    20 deb http://archive.ubuntu.com/ubuntu xenial-updates universe
    21 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://archive.ubuntu.com/ubuntu xenial multiverse
    29 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial multiverse
    30 deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
    31 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    39 # deb-src http://ie.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu xenial partner
    46 # deb-src http://archive.canonical.com/ubuntu xenial partner
    47
    48 deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu xenial-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    52 deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
barry@barry-Lenovo-G50-30:~$ sudo dpkg --audit
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
 ubuntu-release-upgrader-core manage release upgrades

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 ubuntu-release-upgrader-gtk manage release upgrades

New to Ubuntu and any help will be very useful!

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2016-05-14
Last query:
2016-05-14
Last reply:
2016-05-14

Try:

sudo apt-get install ubuntu-restricted-extras

Use TAB and ENTER to accept the license.

Barry Johnston (bjohnston17) said : #2

Thanks actionparsnip, that solved my question.