Upgrading to Ubuntu 9.10 using terminal
Hello,
I was going to upgrade Ubuntu from version 9.04 to version 9.10 by using Update Manager but got the following error message:
"Could not initialise the package information"
this was followed by:
"An unresolvable problem occurred while initialising the package information.
E:unable to parse package file /var/lib/
E:Problem opening /var/lib/
E:The package lists or ststus file could not be parsed or opened"
I am not sure what all that means or whether, as it is unresolvable, I could upgrade by using a terminal.
Is this problem really not resolvable and does it mean re-installing Ubuntu from scratch?
I should mention that I have had a bit of trouble starting Ubuntu today. It would not boot and I had to use recovery mode which found something wrong with E: which it corrected and I was able to boot Ubuntu. Unfortunately I can't remember what the problem was but I had to run fschk which found a setting of 1 which should have been 2 and found another that was 2 and should have been 1 on E: After it corrected them I was able to boot but I cant use Update Manager.
HELP!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- ChrisCS
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
I can not help you to solve this one,but you will not be able to upgrade if system is not up-to-date.Don't try it because you need to fix this.Keep question open and someone will help you.
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: Run the following command:
gksudo gedit /etc/apt/
# ------> in this file, please replace all references to jaunty with karmic, then save the changes to the file /etc/apt/
Step 3: Then 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 |
your computer dont have a problem the database is. there's a lot of people
try to get 9.10 and big traffic. just make an order by mail.
On Fri, Nov 6, 2009 at 7:37 AM, ChrisCS <<email address hidden>
> wrote:
> New question #88857 on Ubuntu:
> https:/
>
> Hello,
>
> I was going to upgrade Ubuntu from version 9.04 to version 9.10 by using
> Update Manager but got the following error message:
>
> "Could not initialise the package information"
>
> this was followed by:
>
> "An unresolvable problem occurred while initialising the package
> information.
>
> E:unable to parse package file
> /var/lib/
> (1)
> E:Problem opening
> /var/lib/
> E:The package lists or ststus file could not be parsed or opened"
>
> I am not sure what all that means or whether, as it is unresolvable, I
> could upgrade by using a terminal.
>
> Is this problem really not resolvable and does it mean re-installing
> Ubuntu from scratch?
>
> I should mention that I have had a bit of trouble starting Ubuntu today. It
> would not boot and I had to use recovery mode which found something wrong
> with E: which it corrected and I was able to boot Ubuntu. Unfortunately I
> can't remember what the problem was but I had to run fschk which found a
> setting of 1 which should have been 2 and found another that was 2 and
> should have been 1 on E: After it corrected them I was able to boot but I
> cant use Update Manager.
>
> HELP!!
>
>
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>
Revision history for this message
|
#4 |
I had the same problem. I made the changes and got the following response:
jeff@Gort:~$ gksudo gedit /etc/apt/
jeff@Gort:~$ sudo cp -arf /var/lib/dpkg /var/lib/
jeff@Gort:~$ sudo cp /var/lib/
jeff@Gort:~$ sudo cp /var/lib/
jeff@Gort:~$ sudo rm -rf /var/lib/
jeff@Gort:~$ sudo rm -rf /var/lib/apt/lists
jeff@Gort:~$ sudo mkdir /var/lib/apt/lists
jeff@Gort:~$ sudo mkdir /var/lib/
jeff@Gort:~$ LANG=C;sudo aptitude clean
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.
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.
jeff@Gort:~$ LANG=C;sudo aptitude 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.
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.
jeff@Gort:~$ LANG=C;sudo apt-get update
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic Release.gpg
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic Release
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Err cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign http://
Ign http://
Ign http://
Get:5 http://
Ign http://
Get:6 http://
Err http://
404 Not Found [IP: 81.171.111.247 80]
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 10.5MB in 37s (281kB/s)
W: Failed to fetch cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.
W: Failed to fetch cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.
W: Failed to fetch http://
E: Some index files failed to download, they have been ignored, or old ones used instead.
jeff@Gort:~$ sudo dpkg --clear-avail
jeff@Gort:~$ sudo dpkg --configure -a
dpkg: parse error, in file `/var/lib/
newline in field name `Installed-
jeff@Gort:~$ LANG=C;sudo aptitude install -f
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.
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.
jeff@Gort:~$ LANG=C;sudo aptitude update
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.
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.
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic Release.gpg
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic Release
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Ign cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Err cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/main Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1) karmic/restricted Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Err http://
404 Not Found [IP: 81.171.111.247 80]
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.
E: Couldn't rebuild package cache
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.
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.
jeff@Gort:~$ LANG=C;sudo aptitude dist-upgrade
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.
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.
jeff@Gort:~$
I don't think it worked, it said in several places that it encountered a section with no Package: header. What next?????
Idlespur
Revision history for this message
|
#5 |
Hi gene bandelaria and Mark Rijckenberg,
First of all, gene bandelaria, thanks for your suggestion. However, I tried to do a normal update before I tried to do the upgrade and still got that message. I read somewhere that before doing an upgrade, one should always make sure that the current installation is up to date. I don't know why this should be if one is going to over write the installation with a new one, but I do it anyway. Thanks again for taking the trouble to reply
Mark, thanks for your suggestions. You will be pleased to know that they worked and I am very grateful to you. Unfortunately, I was concentrating on entering those commands to the extent that I forgot to save the output to paste here. Sorry!
Regards,
Chris