apt-get update fails with "The package lists or status file could not be parsed or opened."
I followed the directions in the troubleshooting document: https:/
However, I'm still having issues. Here's the scroll back:
root@myserver:~# ubuntu-
-bash: ubuntu-
root@myserver:~# cat /etc/dpkg/
cat: /etc/dpkg/
root@myserver:~# dpkg --print-
root@myserver:~# sudo grep -R proxy /etc/apt/*
root@myserver:~# grep proxy /etc/environment
root@myserver:~# echo $http_proxy
root@myserver:~# echo $ftp_proxy
root@myserver:~# grep proxy /etc/bash.bashrc
root@myserver:~# grep proxy ~/.bashrc
root@myserver:~# cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
root@myserver:~# sudo fuser -vvv /var/lib/dpkg/lock
root@myserver:~# sudo fuser -vvv /var/cache/
root@myserver:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
root@myserver:~# uname -a
Linux myserver 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 12:51:49 UTC 2012 i686 i686 i386 GNU/Linux
root@myserver:~# sudo rm /var/lib/
root@myserver:~# sudo rm /var/cache/
root@myserver:~# sudo rm /var/lib/dpkg/lock
root@myserver:~# sudo touch /var/lib/dpkg/lock
root@myserver:~# sudo cp -arf /var/lib/dpkg /var/lib/
root@myserver:~# sudo mv /var/lib/
root@myserver:~# sudo cp /var/lib/
root@myserver:~# sudo mv /var/lib/
root@myserver:~# sudo cp /var/lib/
root@myserver:~# sudo rm -rf /var/lib/
root@myserver:~# sudo rm -rf /var/lib/apt/lists
root@myserver:~# sudo rm /var/cache/
root@myserver:~# sudo mkdir /var/lib/apt/lists
root@myserver:~# sudo mkdir /var/lib/
root@myserver:~# LANG=C;sudo apt-get clean
root@myserver:~# LANG=C;sudo apt-get autoclean
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# LANG=C;sudo apt-get --purge autoremove
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# LANG=C;sudo apt-get --fix-missing 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://
Fetched 12.4 MB in 10s (1196 kB/s)
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/
EOF after field name `'
root@myserver:~# sudo dpkg --clear-avail
root@myserver:~# LANG=C;sudo apt-get -f install
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# LANG=C;sudo apt-get --fix-missing install
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# 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://
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/
E: The package lists or status file could not be parsed or opened.
root@myserver:~# find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 deb http://
2 deb http://
3 deb http://
4 deb http://
5 deb http://
6 # deb http://
7
root@myserver:~#
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Andrew Havens
- Solved:
- Last query:
- Last reply: