LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-27-2016, 02:25 AM   #1
Chrisbar
LQ Newbie
 
Registered: Feb 2016
Location: Australia
Distribution: Debian
Posts: 5

Rep: Reputation: Disabled
Package manager Error: The package lists or status file could not be parsed or opened


I'm running Stretch and 6 days ago I had trouble in Synaptic using the Reload function.
I tried a few times thinking I had a connection problem but now:-
Synaptic gives me the following error message and when I close the error message box Synaptic closes.

E: Encountered a section with no Package:header
E: Problem with MergeList /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_stretch_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed. please report.

I've tried apt-get clean and apt-get update without any improvement.

Can I delete the file named in the error message or replace it with an empty file? Or would changing mirrors do anything useful?
 
Old 02-28-2016, 06:25 AM   #2
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
Post sources.list.
 
Old 02-28-2016, 06:43 PM   #3
Chrisbar
LQ Newbie
 
Registered: Feb 2016
Location: Australia
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sources list minus commented out CD lines is

deb http://ftp.iinet.net.au/debian/debian/ stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib
deb-src http://security.debian.org/ stretch/updates contrib main

I have been using and updating the box for a few months and haven't changed the sources but maybe I should.
The mirror I'm using gives me free data for Debian.
 
Old 02-29-2016, 11:52 AM   #4
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
You could try deleting /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_stretch_main_binary-amd64_Packages. It should just re-download the Packages list. I've never done this, though, so I can't be sure of all the risks involved.
 
Old 02-29-2016, 04:59 PM   #5
Chrisbar
LQ Newbie
 
Registered: Feb 2016
Location: Australia
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Risks

Thanks

I have considered doing that and maybe which ever other ones as necessary if it barfed on the first one and didn't check the rest.
I don't really want to make things worse because a re-install over my SLOW connection is a pain and it takes forever to get the links etc all set up again.
 
Old 02-29-2016, 09:06 PM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, Arch, Void
Posts: 3,637
Blog Entries: 6

Rep: Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277Reputation: 1277
You should be able to delete the file with no adverse affects. Just your next apt-get update will be SLOW (since it's downloading everything new).

Have you ever considered trying the debian redirector to see if you got a faster connection? Not sure how slow the actual connection is, but MIGHT help some.
 
Old 02-29-2016, 10:59 PM   #7
Chrisbar
LQ Newbie
 
Registered: Feb 2016
Location: Australia
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
I'll try it later when my wife is not using teh connection

My connection is slow between my modem and the exchange. Nothing I can do except wait until the NBN in Australia gets it's act together and starts work in this area.
 
Old 03-01-2016, 01:22 AM   #8
Chrisbar
LQ Newbie
 
Registered: Feb 2016
Location: Australia
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Wink Solved

Thanks to Tim.
Had to progressively cycle through about 8 deletes.

Stretch on a NUC5CPYH
 
Old 08-09-2016, 06:06 AM   #9
lakshmibharatham
LQ Newbie
 
Registered: Aug 2016
Posts: 6

Rep: Reputation: Disabled
Hi I tried to update using sudo apt-get update command but am getting some messages like
[ ERR]: Reading package lists
E: Encountered a section with no Package:header
E: Problem with MergeList /var/lib/apt/lists/ftp.iinet.net.au_debian_debian_dists_wheezy-updates_main_il8n_Translation-en.gz
E: The package lists or status file could not be parsed or opened.
Please send me the solution
 
Old 01-20-2018, 07:57 AM   #10
Dizzle
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Code:
#! /bin/sh

ubuntu-support-status
sudo grep -R proxy /etc/apt/*
grep proxy  /etc/environment
echo $http_proxy
echo $ftp_proxy
grep proxy /etc/bash.bashrc
grep proxy ~/.bashrc
cat /etc/apt/apt.conf
sudo fuser -vvv /var/lib/dpkg/lock
sudo fuser -vvv /var/cache/apt/archives/lock
cat /etc/lsb-release
uname -a
sudo rm /var/lib/apt/lists/lock 
sudo rm  /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status  ||  sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get --purge autoremove
sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
sudo dpkg --configure -a
sudo dpkg --clear-avail
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Found this on ask ubuntu which worked for me and resets everything. Just paste it as a shell program.

Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I broke my package manager / broken package blocks installs [Debian Wheezy] arthoc Linux - Software 4 06-20-2014 03:57 AM
Update Manager , Synaptic package manager & dpkg: warning error massage sa3paleasm Linux - Software 1 08-07-2013 04:45 PM
[SOLVED] Synaptic package manager won't open due to faulty package nine9nine Linux - Software 7 09-15-2011 07:30 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
Poll: Yast Package Manager vs. Smart Package Manager in 10.1 agentchange SUSE / openSUSE 6 06-02-2006 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration