0

Whenever I Run sudo apt Or sudo apt-get it says:

hoidberg@Hoidberg:~$ sudo apt-get dist-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:
 libsdl2-2.0-0 : Breaks: libsdl2-2.0-0:i386 (!= 2.0.8+1) but 2.0.8+dfsg1-4ubuntu1 is installed
 libsdl2-2.0-0:i386 : Breaks: libsdl2-2.0-0 (!= 2.0.8+dfsg1-4ubuntu1) but 2.0.8+1 is installed
 libsdl2-dev : Depends: libsdl2-2.0-0 (= 2.0.8+dfsg1-4ubuntu1) but 2.0.8+1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

but when I run sudo apt --fix-broken install it says:

hoidberg@Hoidberg:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libsdl2-2.0-0
The following packages will be upgraded:
  libsdl2-2.0-0
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
17 not fully installed or removed.
Need to get 0 B/381 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 297753 files and directories currently installed.)
Preparing to unpack .../libsdl2-2.0-0_2.0.8+dfsg1-4ubuntu1_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.0.8+dfsg1-4ubuntu1) over (2.0.8+1) ...
dpkg: error processing archive /var/cache/apt/archives/libsdl2-2.0-0_2.0.8+dfsg1-4ubuntu1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libsdl2-2.0-0/copyright', which is different from other instances of package libsdl2-2.0-0:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libsdl2-2.0-0_2.0.8+dfsg1-4ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

or when I run apt --fix-broken install it says:

hoidberg@Hoidberg:~$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

how can I fix this?

packages

  • Looks like you have unwisely added libsdl2 packages (likely from some non-Ubuntu or wrong-version source) that are incompatible with your release of Ubuntu. Remove those incompatible packages. – user535733 Mar 12 at 4:45
  • @karel I don't use Intel graphics I use AMD Radeon R4/R5 Graphics – Hoidberg Mar 14 at 23:21
  • That link didn't help @karel – Hoidberg Mar 22 at 23:09
  • @user535733 how do I? – Hoidberg Mar 25 at 16:08
  • Please edit your question to clearly explain, step-by-step, how you added the unwise non-Ubuntu source, and what packages you added (if any) from that source. – user535733 Mar 25 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.