synaptic error
After a synaptic crash there is always this error:
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: Impossibile analizzare o aprire l'elenco dei pacchetti o il file di stato.
E: _cache->open() failed, please report.
XUBUNTU 8.04LTS
lots of thanks, bye
Martino
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu synaptic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mark Rijckenberg
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
sudo rm /var/lib/
sudo apt-get update
Revision history for this message
|
#2 |
Hi,
First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...
Then please try this procedure:
Step 1: Open Terminal from "Applications-
Terminal"
Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)
sudo cp -arf /var/lib/dpkg /var/lib/
sudo cp /var/lib/
sudo cp /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade
Step 3: Please post results (copy/paste terminal output from each command) on this thread
Hope it helps,
Regards,
Mark
Revision history for this message
|
#3 |
Hi Mark (et al.),
I have done your commands list, here the result:
martino@Aopen:~$ sudo cp -arf /var/lib/dpkg /var/lib/
[sudo] password for martino:
martino@Aopen:~$ sudo cp /var/lib/
martino@Aopen:~$ sudo cp /var/lib/
martino@Aopen:~$ sudo rm -rf /var/lib/
martino@Aopen:~$ sudo rm -rf /var/lib/apt/lists
martino@Aopen:~$ sudo mkdir /var/lib/apt/lists
martino@Aopen:~$ sudo mkdir /var/lib/
martino@Aopen:~$ LANG=C;sudo aptitude clean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
martino@Aopen:~$ LANG=C;sudo aptitude autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Freed 0B of disk space
martino@Aopen:~$ LANG=C;sudo apt-get update
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://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Fetched 8903kB in 1min14s (119kB/s)
Reading package lists... Done
martino@Aopen:~$ sudo dpkg --clear-avail
martino@Aopen:~$ sudo dpkg --configure -a
martino@Aopen:~$ LANG=C;sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
libdns35
The following packages have been automatically kept back:
language-
The following packages have been kept back:
base-files bind9-host dnsutils fuse-utils gzip klibc-utils
language-pack-en language-
libexpat1 libfuse2 libisccc30 libisccfg30 libklibc libkrb53 liblwres30
libssl0.9.8 openssl python2.5 python2.5-minimal samba-common smbclient
0 packages upgraded, 0 newly installed, 1 to remove and 28 not upgraded.
Need to get 0B of archives. After unpacking 41.0kB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 177761 files and directories currently installed.)
Removing libdns35 ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
martino@Aopen:~$ LANG=C;sudo aptitude update
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://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
martino@Aopen:~$ LANG=C;sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be upgraded:
base-files bind9-host dnsutils fuse-utils gzip klibc-utils
language-pack-en language-
language-
libisccc30 libisccfg30 libklibc libkrb53 liblwres30 libssl0.9.8
libthai-data libthai0 openssl python2.5 python2.5-minimal samba-common
smbclient
28 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.6MB of archives. After unpacking 815kB will be freed.
Writing extended state information... Done
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://
Fetched 19.6MB in 35s (556kB/s)
Preconfiguring packages ...
(Reading database ... 177759 files and directories currently installed.)
Preparing to replace gzip 1.3.12-3.2 (using .../gzip_
Unpacking replacement gzip ...
Setting up gzip (1.3.12-
(Reading database ... 177759 files and directories currently installed.)
Preparing to replace base-files 4.0.1ubuntu5.8.04.7 (using .../base-
Unpacking replacement base-files ...
Setting up base-files (4.0.1ubuntu5.
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
(Reading database ... 177759 files and directories currently installed.)
Preparing to replace language-pack-en 1:8.04+20090402 (using .../language-
Unpacking replacement language-pack-en ...
Preparing to replace language-
Unpacking replacement language-
Preparing to replace language-pack-it 1:8.04+20090402 (using .../language-
Unpacking replacement language-pack-it ...
Preparing to replace language-
Unpacking replacement language-
Preparing to replace libssl0.9.8 0.9.8g-4ubuntu3.8 (using .../libssl0.
Unpacking replacement libssl0.9.8 ...
Preparing to replace python2.5 2.5.2-2ubuntu6 (using .../python2.
Unpacking replacement python2.5 ...
Preparing to replace python2.5-minimal 2.5.2-2ubuntu6 (using .../python2.
Unpacking replacement python2.5-minimal ...
Setting up python2.5-minimal (2.5.2-2ubuntu6.1) ...
(Reading database ... 177767 files and directories currently installed.)
Preparing to replace klibc-utils 1.5.7-4ubuntu4 (using .../klibc-
Unpacking replacement klibc-utils ...
Preparing to replace libklibc 1.5.7-4ubuntu4 (using .../libklibc_
Unpacking replacement libklibc ...
Preparing to replace bind9-host 1:9.4.2.
Unpacking replacement bind9-host ...
Preparing to replace dnsutils 1:9.4.2.
Unpacking replacement dnsutils ...
Preparing to replace libisc35 1:9.4.2.
Unpacking replacement libisc35 ...
Preparing to replace libdns36 1:9.4.2.
Unpacking replacement libdns36 ...
Preparing to replace libisccc30 1:9.4.2.
Unpacking replacement libisccc30 ...
Preparing to replace libisccfg30 1:9.4.2.
Unpacking replacement libisccfg30 ...
Preparing to replace liblwres30 1:9.4.2.
Unpacking replacement liblwres30 ...
Preparing to replace libbind9-30 1:9.4.2.
Unpacking replacement libbind9-30 ...
Preparing to replace libkrb53 1.6.dfsg.
Unpacking replacement libkrb53 ...
Preparing to replace fuse-utils 2.7.2-1ubuntu2 (using .../fuse-
Unpacking replacement fuse-utils ...
Preparing to replace libfuse2 2.7.2-1ubuntu2 (using .../libfuse2_
Unpacking replacement libfuse2 ...
Preparing to replace libexpat1 2.0.1-0ubuntu1 (using .../libexpat1_
Unpacking replacement libexpat1 ...
Preparing to replace libthai-data 0.1.9-1 (using .../libthai-
Unpacking replacement libthai-data ...
Preparing to replace libthai0 0.1.9-1 (using .../libthai0_
Unpacking replacement libthai0 ...
Preparing to replace openssl 0.9.8g-4ubuntu3.8 (using .../openssl_
Unpacking replacement openssl ...
Preparing to replace smbclient 3.0.28a-1ubuntu4.9 (using .../smbclient_
Unpacking replacement smbclient ...
Preparing to replace samba-common 3.0.28a-1ubuntu4.9 (using .../samba-
Unpacking replacement samba-common ...
Setting up libssl0.9.8 (0.9.8g-4ubuntu3.9) ...
Setting up python2.5 (2.5.2-2ubuntu6.1) ...
Setting up libklibc (1.5.7-4ubuntu5) ...
Setting up klibc-utils (1.5.7-4ubuntu5) ...
Setting up libisc35 (1:9.4.
Setting up libdns36 (1:9.4.
Setting up libisccc30 (1:9.4.
Setting up libisccfg30 (1:9.4.
Setting up libbind9-30 (1:9.4.
Setting up liblwres30 (1:9.4.
Setting up bind9-host (1:9.4.
Setting up dnsutils (1:9.4.
Setting up libkrb53 (1.6.dfsg.
Setting up libfuse2 (2.7.2-1ubuntu2.1) ...
Setting up fuse-utils (2.7.2-1ubuntu2.1) ...
creating fuse group...
update-initramfs: deferring update (trigger activated)
Setting up libexpat1 (2.0.1-0ubuntu1.1) ...
Setting up libthai-data (0.1.9-1ubuntu0.2) ...
Setting up libthai0 (0.1.9-1ubuntu0.2) ...
Setting up openssl (0.9.8g-4ubuntu3.9) ...
Setting up samba-common (3.0.28a-
Setting up smbclient (3.0.28a-
Setting up language-pack-it (1:8.04+20100117) ...
Setting up language-pack-en (1:8.04+20100117) ...
Setting up language-
Generating locales...
it_CH.UTF-8... done
it_IT.UTF-8... done
Generation complete.
* Reloading GNOME Display Manager configuration... * Changes will take effect when all current X sessions have ended.
Setting up language-
Generating locales...
en_AG.UTF-8... cannot open locale definition file `en_AG': No such file or directory
failed
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZW.UTF-8... done
Generation complete.
* Reloading GNOME Display Manager configuration... * Changes will take effect when all current X sessions have ended.
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
martino@Aopen:~$
Revision history for this message
|
#4 |
Looks fine now. Can you confirm that the Synaptic issue is solved now?
Revision history for this message
|
#5 |
Hi Mark,
it seems work fine: there are no upgrade avaulables now, but synaptic doesn't have any problems!
Thank you very much!
bye,
Martino.