dpkg segfault reading database
I can't install or remove any packages through Synaptic, Ubuntu Software Center, or apt-get. I get this error:
(Reading database ... 65%E: Sub-process /usr/bin/dpkg received a segmentation fault.
The requested log data:
dallmon@poopster:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
dallmon@poopster:~$ uname -a
Linux poopster 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux
dallmon@poopster:~$ sudo rm /var/lib/
[sudo] password for dallmon:
dallmon@poopster:~$ sudo cp -arf /var/lib/dpkg /var/lib/
dallmon@poopster:~$ sudo cp /var/lib/
[sudo] password for dallmon:
dallmon@poopster:~$ sudo cp /var/lib/
dallmon@poopster:~$ sudo rm -rf /var/lib/
dallmon@poopster:~$ sudo rm -rf /var/lib/apt/lists
dallmon@poopster:~$ sudo mkdir /var/lib/apt/lists
dallmon@poopster:~$ sudo mkdir /var/lib/
dallmon@poopster:~$ sudo rm /var/cache/
dallmon@poopster:~$ LANG=C;sudo apt-get clean
dallmon@poopster:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
dallmon@poopster:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libboost-
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 356kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 95%E: Sub-process /usr/bin/dpkg received a segmentation fault.
dallmon@poopster:~$ LANG=C;sudo apt-get update -o APT::Cache-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Fetched 11.7MB in 7s (1469kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
dallmon@poopster:~$ sudo dpkg --clear-avail
dallmon@poopster:~$ sudo dpkg --configure -a
dallmon@poopster:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
dallmon@poopster:~$ LANG=C;sudo apt-get update -o APT::Cache-
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
ghostscript ghostscript-cups ghostscript-x ifupdown libdjvulibre-text libdjvulibre21 libgs8 libkpathsea5 ubufox
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4405kB of archives.
After this operation, 4096B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Fetched 4405kB in 12s (361kB/s)
Preconfiguring packages ...
(Reading database ... 65%E: Sub-process /usr/bin/dpkg received a segmentation fault.
dallmon@poopster:~$
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu dpkg Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dave Allmon
- Solved:
- Last query:
- Last reply: