PDA

View Full Version : [ubuntu] Upgrading Ubuntu



RumboPumbo
December 19th, 2010, 06:36 PM
Hi, i am needing some help in upgrading my ubuntu version,
at the moment i am running Ubuntu 9.04, i am wanting to get to version 10.10, i was going to do the upgrade using the upgrade manager but when i go onto the upgrade management it comes up with the following error message:

http://i289.photobucket.com/albums/ll205/SwanseaCity_GP/upgrademanager-1.gif
Is there a way to get rid of this message from coming up so then i can upgrade to 9.10 and then to 10.04 and then finally to 10.10?
http://ubuntuforums.org/%3Ca%20href=%22http://s289.photobucket.com/albums/ll205/SwanseaCity_GP/?action=view&current=upgrademanager-1.gif%22%20target=%22_blank%22%3E%3Cimg%20src=%22h ttp://i289.photobucket.com/albums/ll205/SwanseaCity_GP/upgrademanager-1.gif%22%20border=%220%22%20alt=%22Photobucket%22% 3E%3C/a%3E

chaanakya_chiraag
December 19th, 2010, 06:38 PM
Can you go to the terminal (Applications->Accessories->Terminal) and type in this command:

sudo apt-get updateWhen it asks for the password, enter YOUR LOGIN password. ATTENTION: the password WILL NOT show up as you are typing.
Then try this command:

sudo apt-get dist-upgradeand see what happens. If you get any errors with either of the above commands, post your error messages here and we'll try to debug.

RumboPumbo
December 19th, 2010, 06:45 PM
Ok, i did that and the error that came up was:

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_jaunty_partner_ binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

chaanakya_chiraag
December 19th, 2010, 11:17 PM
Try the following:

sudo cp -r /var/lib/apt/lists ~/apt/lists
sudo rm -rf /var/lib/apt/lists
sudo apt-get update
This will first back up the directory you are about to purge in case something goes wrong. Then, it will proceed to delete the files it just backed up. Finally, it will run the update command to refresh the package lists.

RumboPumbo
December 20th, 2010, 10:31 AM
i did that first line of

sudo cp -r /var/lib/apt/lists ~/apt/listsbut got the result of:


Report bugs to <bug-coreutils@gnu.org>.
sudo cp -r /var/lib/apt/lists ~/apt/lists
cp: cannot create directory `/home/lloyd/apt/lists': No such file or directory

RumboPumbo
December 20th, 2010, 04:39 PM
...

chaanakya_chiraag
December 20th, 2010, 05:04 PM
Sorry...run this first and then run the previous commands:

mkdir ~/apt

RumboPumbo
December 20th, 2010, 08:46 PM
ok, i did that code and it came up with the following:

E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory
I went onto the update manager, this time the message didn't appear so I clicked to upgrade Ubuntu, it came up with the release notes, i clicked on upgrade at the bottom but nothing happened.

Thanks so far for the help.

chaanakya_chiraag
December 20th, 2010, 11:44 PM
So can you try this code:

sudo touch /var/lib/apt/lists/lock
then try the
sudo apt-get update command again.

RumboPumbo
December 21st, 2010, 12:31 AM
nope, isnt working, it says:

touch: cannot touch `/var/lib/apt/lists/lock': No such file or directory

chaanakya_chiraag
December 21st, 2010, 01:53 AM
hmm...I'm guessing that second command removed the lists directory. Try this command before the touch command:

sudo mkdir /var/lib/apt/lists

EDIT: Actually, maybe that command is all that is needed...try the
sudo apt-get update command after the one above. If it doesn't work, try the touch command and then try the update command.