1

i Just joined to linux.

But i have a problem with app installing. i'm using mint 16. The first app i tried got installed but i get this warning during installing every other apps.

enter image description here

But i connected to the internet.

How can i fix it?

I got this when i'm trying to install via terminal

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

In addition, i can't install a new language. I got this error:

enter image description here

MR_BD
  • 121

2 Answers2

1

try run this command in terminal

sudo apt-get update

and

sudo apt-get upgrade

after that install your desired apps.

if not fixed try comment again here.

I hope it can help

ryanw
  • 667
  • 5
  • 22
  • I got a bunch of this error: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/i/inxi/inxi_1.9.12-1_all.deb 404 Not Found [IP: 91.189.88.149 80] – MR_BD Jan 15 '17 at 08:29
1

It appears that some old apt thread is locking the file. You need to find which process is using it and kill it. Follow this:

  • Try to find which process is using ps aux | grep apt.
  • Type, kill -9 <processnumber>.
  • Update using sudo apt-get update.
  • Install okular using sudo apt-get install okular.

If the method mentioned above doesn't work, try this:

  • sudo rm /var/lib/apt/lists/lock.
  • sudo rm /var/cache/apt/archives/lock.
  • sudo rm /var/lib/dpkg/lock.
  • Update using sudo apt-get update.
  • Install okular using sudo apt-get install okular.

I hope it helps.