LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-16-2008, 09:12 AM   #1
devkinandan.bhatt
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 1
Exclamation synaptic packet manager not opening


hi! to every body, i am just new to Linux[Ubuntu 8.04]. 4 days back i am taking update from my newly installed Linux, but in the mean time my system turn of because of power fluctuation. when i start my system again and start again the download it start giving me message like:........

Could not initialize the package information
A unresolvable problem occurred while initializing the package information. please report this bug against the 'update-manager' package and include the following error message:
'E:Encountered a section with no package:header, E:Problem with Mergerlist /var/lib/dpkg/status, E:The package lists or status file could not be parsed or opened.'


I have tried apt-get -f, apt-get clean, this is of no use then it try to find out where is the error in the /var/lib/dpkg/status by dpkg --audit, if fix some of the problem which i understand. i also try to change the new status file with old one but still the problem is there. following is the output.
dpkg: parse error, in the file `/var/lib/dpkg/status' near line 1:
newline in field name`
 
Old 08-16-2008, 10:33 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
A power surge can cause files to get corrupted.

One thing to try is to rename the existing dpkg directory, then see if Synaptic will automatically create a new one.

The lazy way out is to just re-install. If it's a brand new setup, you presumably don't have a lot of data to be concerned with. (Back up your data regardless.)

Even a low-priced UPS will give you significant protection from such things. I have an earlier version of this one:
http://www.newegg.com/Product/Produc...82E16842101140
We get numerous outages lasting 5 minutes or less. With my hardware, this model is good for maybe 20 minutes.
 
Old 08-17-2008, 07:37 AM   #3
devkinandan.bhatt
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 1
Thank you for your suggestion buddy
i have done what you have suggested, but if i run the update manager it says the same thing what i have written in blue.
what exactly is this message
dpkg: parse error, in the file `/var/lib/dpkg/status' near line 1:
newline in field name`

Last edited by devkinandan.bhatt; 08-17-2008 at 11:53 AM.
 
Old 08-17-2008, 11:42 AM   #4
devkinandan.bhatt
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 1
fix apt-get

Dear Pixellany the guru "One thing to try is to rename the existing dpkg directory, then see if Synaptic will automatically create a new one" is not true in my case. i fix my problem, and the solution is perfectly true in this type of problem.

here we gooooooooo.
we are at root
1. mv /var/lib/dpkg/status __/var/lib/dpkg/status_bak
2. cp /var/backups/dpkg.status.<any latest number>.gz __/var/lib/dpkg/
3. gunzip -d /var/lib/dpkg/dpkg.status.<any latest number>.gz
4. mv /var/lib/dpkg/dpkg.status.<the number in third step> __/var/lib/dpkg/status
5. apt-get update

I hope next time you please address the whole problem, but not the first sentence only.

Last edited by devkinandan.bhatt; 08-17-2008 at 11:52 AM.
 
Old 08-18-2008, 04:13 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
I hope next time you please address the whole problem, but not the first sentence only
I'll offer whatever advice that I think might be useful---no more, no less. If I knew what your dpkg error was, I would have told you.

Good Luck
 
Old 08-18-2008, 04:49 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by devkinandan.bhatt
I hope next time you please address the whole problem, but not the first sentence only.
I'm glad you managed to resolve your problem. I would like you to note, that everyone here is a volunteer and they try their best to help out. We depend on you to give us the correct information about your problem right from the start. Please be grateful and appreciate the efforts of those trying to help. Cheers.
 
  


Reply

Tags
dpkg, help, parse, please



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
Synaptic Package Manager kiwipete Linux - Newbie 6 05-17-2008 08:12 PM
synaptic manager problem ambi Linux - Software 1 02-12-2008 08:04 AM
Want Synaptic package Manager too.. DAVE666 Linux - Newbie 6 01-29-2008 11:13 AM
no synaptic package manager unisol Debian 1 01-09-2007 07:23 AM
synaptic package manager... usien Linux - General 1 01-07-2007 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 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
Open Source Consulting | Domain Registration