Updates issues and packages missing

Asked by Traian Septimiu Gabrian

suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 152, 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 linux-image-extra-4.4.0-120-generic needs to be reinstalled, but I can't find an archive for it.
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ dpkg --print-foreign-architectures
i386
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo grep -R roxy /etc/apt/*
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ grep roxy /etc/environment
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ echo $http_proxy

suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ echo $ftp_proxy

suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ grep roxy /etc/bash.bashrc
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ grep roxy ~/.bashrc
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo fuser -vvv /var/lib/dpkg/lock
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo fuser -vvv /var/cache/apt/archives/lock
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ uname -a
Linux suricilo-HP-Pavilion-15-Notebook-PC 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo rm /var/lib/apt/lists/lock
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo rm /var/cache/apt/archives/lock
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo rm /var/lib/dpkg/lock
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup

I am lost.
Help!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Traian Septimiu Gabrian
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo apt-get update

Thanks

Revision history for this message
Traian Septimiu Gabrian (traian2017) said :
#2

suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo apt-get update
[sudo] password for suricilo:
Ign:1 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic InRelease
Ign:2 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic Release
Ign:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Ign:5 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main all Packages
Ign:6 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en_CA
Ign:7 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en
Ign:8 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted i386 Packages
Ign:12 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted all Packages
Ign:13 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en_CA
Ign:14 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en
Ign:15 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Ign:5 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main all Packages
Ign:6 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en_CA
Ign:7 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en
Ign:8 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted i386 Packages
Ign:12 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted all Packages
Ign:13 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en_CA
Ign:14 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en
Ign:15 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Ign:5 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main all Packages
Ign:6 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en_CA
Ign:7 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en
Ign:8 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted i386 Packages
Ign:12 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted all Packages
Ign:13 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en_CA
Ign:14 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en
Ign:15 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Ign:5 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main all Packages
Ign:6 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en_CA
Ign:7 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en
Ign:8 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted i386 Packages
Ign:12 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted all Packages
Ign:13 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en_CA
Ign:14 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en
Ign:15 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted DEP-11 64x64 Icons
Ign:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Ign:5 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main all Packages
Ign:6 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en_CA
Ign:7 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main Translation-en
Ign:8 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 DEP-11 Metadata
Ign:9 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main DEP-11 64x64 Icons
Ign:10 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 Packages
Ign:11 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted i386 Packages
Ign:12 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted all Packages
Ign:13 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en_CA
Ign:14 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted Translation-en
Ign:15 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted amd64 DEP-11 Metadata
Ign:16 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/restricted DEP-11 64x64 Icons
Err:3 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:4 cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic/main i386 Packages
Get:17 http://deb.opera.com/opera-stable stable InRelease [2,592 B]
Ign:18 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:19 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:20 http://archive.canonical.com/ubuntu utopic InRelease
Err:17 http://deb.opera.com/opera-stable stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
Hit:21 http://dl.google.com/linux/chrome/deb stable Release
Hit:22 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:23 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Hit:24 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease
Hit:25 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
W: The repository 'cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1) utopic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.opera.com/opera-stable stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
W: Failed to fetch http://deb.opera.com/opera-stable/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
E: Failed to fetch cdrom://Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)/dists/utopic/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Some index files failed to download. They have been ignored, or old ones used instead.

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

https://wiki.ubuntu.com/Releases

Utopic is no longer supported and there are no updates or packages for it.

I suggest you wipe off the installation and do a clean install of Bionic. Bionic is LTS and supported until April 2023.

Revision history for this message
Traian Septimiu Gabrian (traian2017) said :
#4

I actually have 16.04 Ubuntu but it does not boot at all in this version. Therefore I have to boot in an older version.(i.e. 14.04)
Do you suggest I install the 18.04 over it anyways?
Thanks!

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

1. To get rid of these "Err: cdrom://Ubuntu 14.10 _Utopic Unicorn" errors do the following:
Open a terminal window (e.g. by simultaneously pressing ctrl-alt-t) and issue the command
sudo gedit /etc/apt/sources.list
This will ask for your password as confirmation for an administrative action and will then open an editor with the sources.list configuration file loaded.
One of the first lines will contain something like "deb cdrom:[Ubuntu 14.10 _Utopic Unicorn ..."
Put a comment indication ('#') to the beginning of this line. Save the file and close the editor.

Furthermore issue the command
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv D615560BA5C7FF72

Finally re-execute the command
sudo apt-get update
Do you still get error messages?

2. You have to decide which Ubuntu release you want to have in near future.
You currently have Ubuntu 14.04 (supported until next year), but there are also 16.04 (support until 2021) and 18.04 (support until 2023).
If you want, you can do an in-place upgrade from 14.04 to 16.04, but it should be made sure that the apt-get commands do not produce any error any more.

Revision history for this message
Traian Septimiu Gabrian (traian2017) said :
#6

suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$ sudo gedit/etc/apt/sources.list
[sudo] password for suricilo:
sudo: gedit/etc/apt/sources.list: command not found
suricilo@suricilo-HP-Pavilion-15-Notebook-PC:~$

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

You missed a space character between "gedit" and "/etc/apt/sources.list"

Revision history for this message
Traian Septimiu Gabrian (traian2017) said :
#8

Well, or (sollte ich "na ja sagen) I did what you guys suggested yesterday.
I created a boot USB with 18.08 and after having saved my data, I installed the new version. Thanks a lot.
Cheers