3

I bought a System76 laptop. However, every time I try to install something, I get this error (or something similar):

mike@mike-Lemur:~$ sudo apt-get install curl
Reading package lists... Done 
Building dependency tree
Reading state information... Done
curl is already the newest version (7.47.0-1ubuntu2.2). 
You might want to run 'apt-get -f install' to correct these: 
The following packages have unmet dependencies: 
 libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed 
 libgcrypt20:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed 
 libgpg-error0:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed 
 liblzma5:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed 
 libpcre3:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed 
 libselinux1:i386 : Depends: libc6:i386 (>= 2.8) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

How do I fix this issue?

  • 2
    The error suggests Try 'apt-get -f install' Have you tried that yet ? – Sergiy Kolodyazhnyy May 30 '17 at 18:58
  • 1
    What did you install prior to this? You shouldn't see these dependencies for 32-bit packages in a standard 64-bit install. – chaskes May 30 '17 at 19:02
  • Did you run sudo apt-get update first? – ubfan1 May 30 '17 at 19:05
  • @SergiyKolodyazhnyy I did, and it said apt-get -f 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? – Mike Williams May 30 '17 at 19:18
  • @chaskes nothing that I'm aware of. I tried to install Wine right off the bat, and it gave me the error- – Mike Williams May 30 '17 at 19:20
2

Run this command on your system:

sudo apt-get update && sudo apt-get -f install && sudo apt-get dist-upgrade 
| improve this answer | |
  • Emma, have a look here, please? – Fabby Jun 9 '17 at 20:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.