Author Topic: 1000 Broken Packages  (Read 981 times)

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
1000 Broken Packages
« on: April 19, 2010, 07:38:55 AM »
All of a sudden going into synaptic to update, gave me an error message stating '1000 broken packages' click to fix blah.....
running  'sudo apt-get update' Returned this message

E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory

Re-did repo speedtest and got new sources list, to no avail. Everything works fine, I can boot & compute but can't update or install software, what went wrong and IS there a fix?
Using pclos 2010 Gnome

Thanks to anyone in advance

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: 1000 Broken Packages
« Reply #1 on: April 19, 2010, 07:46:49 AM »
Did you Reload after opening Synaptic?

Maybe

rpm --rebuilddb

would help.

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2376
Re: 1000 Broken Packages
« Reply #2 on: April 19, 2010, 07:50:41 AM »
Hmmm, we used to have a synaptic repair utility .... Don't see it in the repo's though ... One of the lost (so far) options it seems. Did you try check install? Do you see the lock file in /var/cache/apt/archives?

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
Re: 1000 Broken Packages
« Reply #3 on: April 19, 2010, 07:57:41 AM »
sudo ls -l /var/cache/apt/archives returns:
 
total 1364
-rw-rw-r-- 1 root root 1228509 2010-01-19 23:00 bash-4.1-3pclos2010.i586.rpm
-rw-rw-r-- 1 root root   63545 2010-01-19 23:15 dash-static-0.5.5.1-1pclos2010.i586.rpm
-rw-r----- 1 root root       0 2010-04-19 02:28 lock
drwxr-xr-x 2 root root    4096 2010-04-19 02:28 partial
-rw-r--r-- 1 root root   84480 2009-11-27 05:42 streamripper-1.64.5-1pclos2010.i586.rpm

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
Re: 1000 Broken Packages
« Reply #4 on: April 19, 2010, 07:59:33 AM »
rpm --rebuilddb

Returns this:
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: 1000 Broken Packages
« Reply #5 on: April 19, 2010, 08:08:32 AM »
Quote
sudo ls -l /var/cache/apt/archives

Interesting ......  have you set up sudo on your system?

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
Re: 1000 Broken Packages
« Reply #6 on: April 19, 2010, 08:34:06 AM »
I've setup sudo like this, as to not prompt me for a password, been doin this for ages

larry ALL =NOPASSWD: ALL

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5383
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: 1000 Broken Packages
« Reply #7 on: April 19, 2010, 11:08:58 AM »
All of a sudden going into synaptic to update, gave me an error message stating '1000 broken packages' click to fix blah.....
running  'sudo apt-get update' Returned this message

E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory

Re-did repo speedtest and got new sources list, to no avail. Everything works fine, I can boot & compute but can't update or install software, what went wrong and IS there a fix?
Using pclos 2010 Gnome

Thanks to anyone in advance

PCLinuxOS does not use SUDO!




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5383
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: 1000 Broken Packages
« Reply #8 on: April 19, 2010, 11:10:23 AM »
Hmmm, we used to have a synaptic repair utility .... Don't see it in the repo's though ... One of the lost (so far) options it seems. Did you try check install? Do you see the lock file in /var/cache/apt/archives?


Synaptic repair utility is in Software Center in the menu in 2010




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline larry1160

  • Full Member
  • ***
  • Posts: 101
Re: 1000 Broken Packages
« Reply #9 on: April 19, 2010, 01:23:46 PM »
PCLinuxOS does not use SUDO!

What is this the word of God, Linux is what u make and can do with it. If it "doesn't use sudo, why is there a sudoers file?"

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: 1000 Broken Packages
« Reply #10 on: April 19, 2010, 01:29:44 PM »
rpm --rebuilddb

Returns this:
error: db4 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found


Have a look at the man page for rpm .......  there is a means to create a fresh data base (using init or something to initialise a new one?) ........  it might be worth while trying to create a fresh db ..........  I am not by any means sure it is the problem but ........

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12662
Re: 1000 Broken Packages
« Reply #11 on: April 19, 2010, 01:31:53 PM »
In the past when the rpm database is corrupt is an indication of a bad burn and/or bad install.

Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: 1000 Broken Packages
« Reply #12 on: April 19, 2010, 03:36:45 PM »
PCLinuxOS does not use SUDO!

What is this the word of God, Linux is what u make and can do with it. If it "doesn't use sudo, why is there a sudoers file?"


For the purpose for which it was intended; to give a selected individual, or process, limited root permissions to perform a specific task, or tasks, without having to give them the root password, and complete root access.
« Last Edit: April 19, 2010, 03:40:34 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...