can not install ,update packages

Asked by barat

Please help!
Any kind of installing is failing ,below is the error message.

hantengri@hantengri-desktop:~$ sudo aptitude update
E: Malformed line 2 in source list /etc/apt/sources.list.d/edgy-universe.list (dist parse)
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?
E: Malformed line 2 in source list /etc/apt/sources.list.d/edgy-universe.list (dist parse)
E: The list of sources could not be read.

here is the screenshot:
http://barat107.multiply.com/photos/hi-res/23/1?xurl=%2Fphotos%2Fphoto%2F23%2F1

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
barat
Solved:
Last query:
Last reply:
Revision history for this message
Steve Garton (sheepeatingtaz) said :
#1

Hi There,

I suspect that your problem is that you have too many 'installation' programs open. You can run EITHER synaptic or apt-get or Add/Remove Programs, but not all concurrently.

Please can you try just running one of the options and tell us if this solves your problem?

Revision history for this message
barat (xantengri) said :
#2

I did, but still the same:-(

Revision history for this message
Steve Garton (sheepeatingtaz) said :
#3

Hi (again!)

Have you tried by just clicking the icon on your task-bar (in the top-right corner) that looks like a white asterisk on an orange square? That is the update notifier, so if that is 'doing something', the other methods will not work.

Can you try closing synaptic and your terminal and selecting the icon mentioned above, to see if that works?

--
sheepeatingtaz

Revision history for this message
barat (xantengri) said :
#4

Still the same, and i put the mouse pointer(?) on it,it gives a small window saying the error message as above.I clicked that, and the updater window came but immediately disappeared.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#5

You actually have two problems, one has been explained - you can only run one update application at a time. This will fix this error message:-

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?

However the second problem is that the file /etc/apt/sources.list.d/edgy-universe.list is corrupted in some way.

In your screenshot you showed us /etc/apt/sources.list when you should have shown us /etc/apt/sources.list.d/edgy-universe.list

Please check that file, and if necessary post it here for us to fix.

Revision history for this message
barat (xantengri) said :
#6

Here is the screenshot:

http://barat107.multiply.com/photos/hi-res/24/1?xurl=%2Fphotos%2Fphoto%2F24%2F1

Thank you so much for your continuous help, and thanks a million in advance!!!

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#7

You already have edgy-security listed in /etc/apt/sources.list, so you don't need it in /etc/apt/sources.d/edgy-universe.list too. I would move or remove that file.

$ sudo mv /etc/apt/sources.list.d/edgy-universe.list ~

To move it to your home directory. Then try apt-get again.

Revision history for this message
Steve Garton (sheepeatingtaz) said :
#8

It looks like there is a / missing after the ubuntu on the second line. If you run

sudo gedit /etc/apt/sources.list.d/edgy-universe.list

and change the second line from

deb http://security.ubuntu.com/ubuntu edgy-security

to

deb http://security.ubuntu.com/ubuntu/ edgy-security

Save, close, and try an update again?

Revision history for this message
Best barat (xantengri) said :
#9

Thank God, solved:-)
Thanks a lot man, i appreciate so much:-) So nice of you!

Revision history for this message
funky^munkee (rm-dcavell) said :
#10

i had the same problem as above the same command solved the problem:

         sudo mv /etc/apt/sources.list.d/edgy-universe.list ~

Wonderful good post :)