LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2015, 09:36 PM   #1
LarryR.C01
LQ Newbie
 
Registered: Sep 2015
Location: eastern jungles of Colombia
Distribution: Linux Mint 17 Quiana
Posts: 6

Rep: Reputation: Disabled
Synaptic Package Manager suddenly began returning error message


I'm running Mint "Quiana" on a Dell Latitude D630.
Everything was working well but now all of a sudden when I attempt to run Synaptic Package Manager I get the following error message.

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/packages.linuxmint.com_dists_qiana_import_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

* NOTE: I get a similar error message from Update Manager.

I found a Similar Thread: http://www.linuxquestions.org/questi...er-4175508498/

I tried the recommendation there "apt-get clean" but the terminal responds:
E: could not open lock file var/cache/apt/archives/lock - open (13 Permission denide)
E: unable to lock the download directory

Someone, please tell me what to try next!
 
Old 10-12-2015, 09:47 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,657
Blog Entries: 12

Rep: Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894
Did you run apt-get clean as root?
 
Old 10-13-2015, 07:34 AM   #3
LarryR.C01
LQ Newbie
 
Registered: Sep 2015
Location: eastern jungles of Colombia
Distribution: Linux Mint 17 Quiana
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks, Frank, for responding last night. I only saw it this morning. (We turn in really early out here.)
No, I didn't -- I guess I'm too much of a "newbie" to even realize I needed to run it as root. That's "sudo", isn't it? I tried keying "sudo apt-get clean". Terminal then asked for my password but nothing appeared on screen as I was keying it. However, it gave me the command line again so I re-keyed the command. But nothing happened and I continue to get the same error message from both Update Manager and Synoptic Package Manager. What am I overlooking??
 
Old 10-13-2015, 07:48 AM   #4
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 14.04 LTS
Posts: 232

Rep: Reputation: 65
Quote:
Originally Posted by LarryR.C01 View Post
Thanks, Frank, for responding last night. I only saw it this morning. (We turn in really early out here.)
No, I didn't -- I guess I'm too much of a "newbie" to even realize I needed to run it as root. That's "sudo", isn't it? I tried keying "sudo apt-get clean". Terminal then asked for my password but nothing appeared on screen as I was keying it. However, it gave me the command line again so I re-keyed the command. But nothing happened and I continue to get the same error message from both Update Manager and Synoptic Package Manager. What am I overlooking??
The apt-get clean command doesn't give you any output, it just cleans /var/cache/apt/archives/ and /var/cache/apt/archives/partial/

Code:
man apt-get

...
clean
           clean clears out the local repository of retrieved package files. It removes everything but the lock file from
           /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
...
Now run "sudo apt-get update" or press reload in synaptic. Are the error messages gone?

Edit: If you still get this error message, delete /var/lib/apt/lists/packages.linuxmint.com_dists_qiana_import_i18n_Translation-en or all files in /var/lib/apt/lists/. They will be recreated when you run "sudo apt-get update" the next time.

Last edited by hortageno; 10-13-2015 at 07:53 AM.
 
Old 10-13-2015, 09:45 AM   #5
LarryR.C01
LQ Newbie
 
Registered: Sep 2015
Location: eastern jungles of Colombia
Distribution: Linux Mint 17 Quiana
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for sticking with me!!
I've now tried all you recommended. Synaptics Pkg Mgr still won't run - immediately gives me the same error message.
Running "update" as root appeared to pull lots of stuff from the internet, down through several lines under "Get: 13 http://mirror.us.leaseweb.net trusty-updates...."
Under the last one it says "Fetched 1,629 kB...."
Then "Reading package lists... Error!"
(followed by the same error message I copied in my orignial posting)

I then navigated to the individual file you mentioned at the end of your last response and attempted to delete it, but it won't allow me to. Ditto if I select all the files in /var/lib/apt/lists/.

Again, what am I overlooking or neglecting to do? -LARRY
 
Old 10-13-2015, 10:07 AM   #6
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 14.04 LTS
Posts: 232

Rep: Reputation: 65
Quote:
Originally Posted by LarryR.C01 View Post
I then navigated to the individual file you mentioned at the end of your last response and attempted to delete it, but it won't allow me to. Ditto if I select all the files in /var/lib/apt/lists/.

Again, what am I overlooking or neglecting to do? -LARRY
In Linux a normal user is usually not allowed to change or delete system files. You need to do that as root or with sudo. Open a terminal and run

Code:
sudo rm /var/lib/apt/lists/*
to delete all files in there.
 
Old 10-13-2015, 12:34 PM   #7
LarryR.C01
LQ Newbie
 
Registered: Sep 2015
Location: eastern jungles of Colombia
Distribution: Linux Mint 17 Quiana
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks! After following that last recommendation Update Manager is working again!
(This "newbie" had assumed that after keying Ctrl-H in order to SEE hidden files, there was nothing more I had to do in order to delete them.)

I'm left with one question if one of you has time to respond again: What caused Update Manager and Synoptic Package Manager to get hung up in the first place? Did I do something wrong?
My internet connection here is very erratic so it's entirely possible there was an interruption to the that service while the system was in the midst of updating something. It had been updating all kinds of things though during the previous 3 weeks, using the same connection, with no apparent problem....
 
  


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
Error Synaptic Package Manager frankma52 Linux - Newbie 1 06-19-2014 07:21 PM
Update Manager , Synaptic package manager & dpkg: warning error massage sa3paleasm Linux - Software 1 08-07-2013 05:45 PM
[SOLVED] synaptic package manager sending error message hydropass Linux - Newbie 3 10-20-2010 06:59 PM
I go to Synaptic Pakage Manager and I get this error message every time: porkgrinder1976 Linux - Newbie 2 11-22-2008 11:52 PM
error message when upgrading through synaptic package manager pbtest Linux - Newbie 21 11-20-2008 11:01 AM


All times are GMT -5. The time now is 01:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration