EDIT 3 :
This is after command sudo apt-get purge libpciaccess*
laur@laur-System-Product-Name:~$ sudo apt-get purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpciaccess0 : Breaks: libpciaccess0:i386 (!= 0.14-1) but 0.16-
0ubuntu1 is installed
libpciaccess0:i386 : Breaks: libpciaccess0 (!= 0.16-0ubuntu1) but
0.14-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
laur@laur-System-Product-Name:~$ sudo apt-get purge libpciaccess*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpciaccess0' for glob 'libpciaccess'
Note, selecting 'libpciaccess-dev' for glob 'libpciaccess'
Package 'libpciaccess-dev' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
intel-media-va-driver : Depends: libpciaccess0 but it is not going to
be installed
libdrm-intel1 : Depends: libpciaccess0 but it is not going to be
installed
spice-vdagent : Depends: libpciaccess0 but it is not going to be
installed
ubuntu-drivers-common : Depends: libpciaccess0 (>= 0.10.7) but it is
not going to be installed
xserver-xorg-core : Depends: libpciaccess0 (>= 0.12.902) but it is not
going to be installed
xserver-xorg-video-ati : Depends: libpciaccess0 but it is not going to
be installed
xserver-xorg-video-intel : Depends: libpciaccess0 (>=
0.8.0+git20071002) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
More of them are appearing... I tried installing Intel Graphics For Linux also, but unfortunatelly its instalation didn't worked.
EDIT 2 :
laur@laur-System-Product-Name:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpciaccess0
The following packages will be upgraded:
libpciaccess0
1 upgraded, 0 newly installed, 0 to remove and 94 not upgraded.
13 not fully installed or removed.
Need to get 0 B/17,9 kB of archives.
After this operation, 33,8 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 232583 files and directories currently
installed.)
Preparing to unpack .../libpciaccess0_0.16-0ubuntu1_amd64.deb ...
Unpacking libpciaccess0:amd64 (0.16-0ubuntu1) over (0.14-1) ...
dpkg: error processing archive
/var/cache/apt/archives/libpciaccess0_0.16-0ubuntu1_amd64.deb (--
unpack):
trying to overwrite shared
'/usr/share/doc/libpciaccess0/changelog.Debian.gz', which is different
from other instances of package libpciaccess0:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libpciaccess0_0.16-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I recieve the error above ^
EDIT :
I restored the default repositories through method provided by @karel and still I get the same output:
laur@laur-System-Product-Name:~$ sudo apt-get upgrade
[sudo] password for laur:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpciaccess-dev : Depends: libpciaccess0 (= 0.16-0ubuntu1) but 0.14-1
is installed
libpciaccess0 : Breaks: libpciaccess0:i386 (!= 0.14-1) but 0.16-
0ubuntu1 is installed
libpciaccess0:i386 : Breaks: libpciaccess0 (!= 0.16-0ubuntu1) but
0.14-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
Good afternoon! I am facing a really annoying problem with Ubuntu 20.04, I have those packages that have unmet dependencies, I tried using all the methods found by me on Internet to remove them, but none of them worked as expected.
I want to just fix this error in order to install some required upgrades for Linux
I tried sudo apt --fix-broken install
but didn't worked.
I am new to Linux distribution and I want just to learn how to use it better.
Thank you for any kind of help!
laur@laur-System-Product-Name:~$ sudo apt update
[sudo] password for laur:
Hit:1 http://ro.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://repo.steampowered.com/steam stable InRelease
Hit:3 http://ro.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 https://deb.nodesource.com/node_14.x focal InRelease
Hit:5 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:6 http://ro.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [107
kB]
Hit:8 https://packages.microsoft.com/repos/ms-teams stable InRelease
Fetched 107 kB in 1s (112 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
laur@laur-System-Product-Name:~$ sudo apt list --upgradable
Listing... Done
aptdaemon-data/focal-updates,focal-updates,focal-security,focal-
security 1.1.1+bzr982-0ubuntu32.2 all [upgradable from: 1.1.1+bzr982-
0ubuntu32]
aptdaemon/focal-updates,focal-updates,focal-security,focal-security
1.1.1+bzr982-0ubuntu32.2 all [upgradable from: 1.1.1+bzr982-0ubuntu32]
gdebi-core/focal,focal 0.9.5.7+nmu3 all [upgradable from:
0.9.5.7+nmu3]
libpciaccess0/focal 0.16-0ubuntu1 amd64 [upgradable from: 0.14-1]
python3-aptdaemon.gtk3widgets/focal-updates,focal-updates,focal-
security,focal-security 1.1.1+bzr982-0ubuntu32.2 all [upgradable from:
1.1.1+bzr982-0ubuntu32]
python3-aptdaemon/focal-updates,focal-updates,focal-security,focal-
security 1.1.1+bzr982-0ubuntu32.2 all [upgradable from: 1.1.1+bzr982-
0ubuntu32]
secureboot-db/focal-updates 1.6~20.04.1 amd64 [upgradable from: 1.5]
laur@laur-System-Product-Name:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpciaccess-dev : Depends: libpciaccess0 (= 0.16-0ubuntu1) but 0.14-1
is installed
libpciaccess0 : Breaks: libpciaccess0:i386 (!= 0.14-1) but 0.16-
0ubuntu1 is installed
libpciaccess0:i386 : Breaks: libpciaccess0 (!= 0.16-0ubuntu1) but
0.14-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
sudo apt update
, and add a link to whatever instructions you were following that caused the problem. – user535733 Oct 02 '20 at 15:03/etc/apt/sources.list
for 20.04 will give you the ideal file for 20.04, you should copy those contents from online and overwrite to your/etc/apt/sources.list
. – Aaryan BHAGAT Oct 02 '20 at 15:34sources.list
file and edit the question if some error pops up. – Aaryan BHAGAT Oct 02 '20 at 16:42sudo apt-get update
again? After this command do 'sudo apt-get upgrade` – Aaryan BHAGAT Oct 02 '20 at 17:03sudo apt-get -f install
? Have you triied purging those packages usingsudo apt-get purge
? – Aaryan BHAGAT Oct 02 '20 at 17:20sudo apt-get -f install
andsudo apt-get purge
but none of them seem to work, I will post also the output ofsudo apt-get purge
in a few minutes. Already done forsudo apt-get -f install
( see edited question ) – Oct 02 '20 at 17:35