PDA

View Full Version : [SOLVED] Software Index is broken



SnoopFogg
July 15th, 2011, 01:58 PM
Hi, I'm getting a message from Update Manager that the Software Index is broken and that it is impossible to install or remove any software. I'm using Ubuntu 10.04. I've tried

Synaptic -> Edit -> Fix broken Packages (which did nothing).

sudo apt-get install -f gives:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
fglrx
0 upgraded, 0 newly installed, 1 to remove and 87 not upgraded.
1 not fully installed or removed.
After this operation, 60.0MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 381250 files and directories currently installed.)
Removing fglrx ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by fglrx'
found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
dpkg: error processing fglrx (--remove):
subprocess installed post-removal script returned error exit status 2
Processing triggers for ureadahead ...
Errors were encountered while processing:
fglrx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea what I can do to fix this? Cheers

raja.genupula
July 15th, 2011, 02:12 PM
try this

sudo rm -rf /var/lib/apt/lists/*

sudo apt-get update

SnoopFogg
July 15th, 2011, 02:54 PM
Thanks, after apt-get update I get:

E: Lists directory /var/lib/apt/lists/partial is missing.

Any other ideas?

dino99
July 15th, 2011, 02:58 PM
Thanks, after apt-get update I get:

E: Lists directory /var/lib/apt/lists/partial is missing.

Any other ideas?

blindly following risky command without understanding its meaning is scary, remember that for future :)

open nautilus to recreate /partial/

raja.genupula
July 15th, 2011, 03:06 PM
i never faced the problem thats why i suggest , dont mind .

dino99
July 15th, 2011, 03:13 PM
i never faced the problem thats why i suggest , dont mind .

dont use "-rf" its too scary (but you are free to use it indeed)

SnoopFogg
July 15th, 2011, 03:52 PM
Hi, thanks. I'll be more cautious in future. Though I am backed-up in preparation for having to reinstall 10.04.

Tried opening nautilus to recreate /partial/. Though all I did was to open nautilus - was I supposed to do anything else once it was opened? It's not helped in as much as I still get the error message when I run update manager.

ak331
July 15th, 2011, 06:36 PM
I recently upgraded to image 2.6.32-33 these are the results

If I run synaptic manager it tells me that package is broken and I should run "sudo pkge -config -d"
when I run it in terminal the system hangs at the generating grub.cfg and just hangs and I am not sure whether I can manually remove the latest kernel or reinstall it as terminal freezes and synaptic manager quits after the message.

Any suggestions.

SnoopFogg
July 17th, 2011, 03:45 PM
Hi, I'm still unable to use update manager which says that the software index is broken.

sudo apt-get install -f now shows:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
fglrx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
E: Lists directory /var/lib/apt/lists/partial is missing.

Any ideas what I can do to fix this?

raja.genupula
July 17th, 2011, 03:54 PM
@snoopfog


sudo mkdir /var/lib/apt/lists/partial

try this man ,

SnoopFogg
July 17th, 2011, 06:00 PM
Thanks, but I'm still getting error messages that the software index is broken. Then apt-get install -f shows:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
fglrx
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
1 not fully installed or removed.
After this operation, 60.0MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 381250 files and directories currently installed.)
Removing fglrx ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by fglrx'
found `diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
dpkg: error processing fglrx (--remove):
subprocess installed post-removal script returned error exit status 2
Processing triggers for ureadahead ...
Errors were encountered while processing:
fglrx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any other ideas on how to get updates working again?

SnoopFogg
July 18th, 2011, 08:14 AM
Hi, can anyone help with this problem - Update Manager says Software Index is broken and that it is impossible to install or remove any software. I'm using Ubuntu 10.04 - would upgrading to 10.10 fix this? Ideally I would like to avoid re-installation or upgrade as I'm happy with LTS. Any help much appreciated.

dino99
July 18th, 2011, 11:16 AM
Update-Manager is not the only one's tool to do the job: apt-get, synaptic

sudo rm /var/cache/apt/archives/*
( dont worry about the warning, here nothing is destroyed as "-rf" is not used)

if you are using not genuine repo (like ppa, or mixing distro), then update, otherwise deactivate them first.

SnoopFogg
July 19th, 2011, 10:06 PM
Hi, thanks for the help and your patience as I'm well out of my depth here. Think I might have screwed something up earlier:

russ@russ-desktop:~$ sudo apt-get update
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Archive directory /var/cache/apt/archives/partial is missing.

Is this fixable?

(I should point out that I tried sudo rm /var/cache/apt/archives/*, which appeared to work but didn't give any error messages when I was expecting to receive one).

SnoopFogg
July 24th, 2011, 06:42 PM
I still cannot make any updates. I get the following error messages:

1. System/Administration/Update manager
It is impossible to install or remove any software. Please use the package manager "Synaptic" or run "sudo apt-get install -f" in a terminal to fix this issue at first

2. Synaptic package manager
Could not download all repository indexes
Lists directory /var/lib/apt/lists/partial is missing.Archive directory /var/cache/apt/archives/partial is missing.

3. sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
fglrx
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
1 not fully installed or removed.
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Archive directory /var/cache/apt/archives/partial is missing.

4. sudo apt-get update
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Archive directory /var/cache/apt/archives/partial is missing.


Any suggestions to fix this gratefully received.

SnoopFogg
July 25th, 2011, 08:55 AM
Hi, Can anyone confirm whether the broken software index problem I am having is related to problems installing the nvidia closed source driver on my 10.04 machine? (I want to use Compiz).

russ@russ-desktop:~$ sudo apt-get install nvidia-xconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package nvidia-xconfig


Below is a summary of the errors I get when attempting updates on my 10.04 machine:

1. System/Administration/Update manager
It is impossible to install or remove any software. Please use the package manager "Synaptic" or run "sudo apt-get install -f" in a terminal to fix this issue at first

2. Synaptic package manager
Could not download all repository indexes
Lists directory /var/lib/apt/lists/partial is missing.
Archive directory /var/cache/apt/archives/partial is missing.

3. sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
fglrx
0 upgraded, 0 newly installed, 1 to remove and 91 not upgraded.
1 not fully installed or removed.
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Archive directory /var/cache/apt/archives/partial is missing.

4. sudo apt-get update
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Archive directory /var/cache/apt/archives/partial is missing.


Are there any solutions to this problem other than a complete re-install? I really don't want to do that if I can avoid it!

Cheers

el_koraco
July 25th, 2011, 09:00 AM
Try


sudo mkdir /var/lib/apt/lists/partial
sudo mkdir /var/cache/apt/archives/partial
sudo apt-get update

SnoopFogg
July 25th, 2011, 10:20 AM
Brilliant. Thanks for your help. Back in business now and all working with compiz too. Cheers