LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Can't load ubuntu after upgrade from 10.04 to 12.04 (http://www.linuxquestions.org/questions/ubuntu-63/cant-load-ubuntu-after-upgrade-from-10-04-to-12-04-a-4175449974/)

centurian 02-13-2013 06:06 AM

Can't load ubuntu after upgrade from 10.04 to 12.04
 
Hi to all,

I made the same question at http://ubuntuforums.org/showthread.p...2#post12507402 but it seems there is no answer.

Now, to the problem itself, during the upgrade I noticed an error installing libxml-libxml-perl and when finished I noticed I couldn't boot anything so, I decided to repair grub.

My reports as I tried to fix grub with live cd following this (2nd option) are: this and this.

My system was still non bootable so, I decided to manually re-install grub following this:

Code:

sudo mount /dev/sda5 /mnt
sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub

last command fixed boot menu where I can start windows but not Linux!

I decided to fix my suspicious errors during installation so I continued typing as a chroot user......

Code:

dpkg --configure --pending
took 20 minutes to download missing confs!!

I insisted on having a grub problem so I decided to remove grub and re-install it following this (Purging & Reinstalling GRUB 2)BUT:

Code:

root@ubuntu:/# apt-get purge grub grub-pc grub-common
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package grub is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 grub-gfxpayload-lists : Depends: grub-pc (>= 1.99~20101210-1ubuntu2) but it is not going to be installed
 grub-pc-bin : Depends: grub-common (= 1.99-21ubuntu3) but it is not going to be installed
 grub2-common : Depends: grub-common (= 1.99-21ubuntu3) but it is not going to be installed
 libxml-libxml-perl : Depends: perlapi-5.10.0 but it is not installable
                      Depends: libxml-sax-perl but it is not going to be installed
 ubuntu-minimal : Depends: resolvconf
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

aaaa.... that libxml-libxml-perl problem!!!
Shall we move on?

Code:

root@ubuntu:/# dpkg --configure --pending
Setting up resolvconf (1.63ubuntu11) ...
mkdir: cannot create directory `/run': Too many levels of symbolic links
dpkg: error processing resolvconf (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on resolvconf; however:
  Package resolvconf is not configured yet.
dpkg: error processing ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 resolvconf
 ubuntu-minimal

what about?

Code:

root@ubuntu:/# apt-get -f install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libxml-libxml-perl
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 1,376 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 310697 files and directories currently installed.)
Removing libxml-libxml-perl ...
/var/lib/dpkg/info/libxml-libxml-perl.prerm: 11: /var/lib/dpkg/info/libxml-libxml-perl.prerm: update-perl-sax-parsers: not found
dpkg: error processing libxml-libxml-perl (--remove):
 subprocess installed pre-removal script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 libxml-libxml-perl
E: Sub-process /usr/bin/dpkg returned an error code (1)

or even:

Code:

root@ubuntu:/# apt-get upgrade -f
root@ubuntu:/# apt-get dist-upgrade -f

...the same!

When I boot and enter Ubuntu there is a message saying:
Code:

"could not log bootup: Address already in use. An error occurred while mounting /run"
My system is not working.
Should I go for a clean re-install and then can I import my home partition and especially my firefox bookmarks as they contain valuable data?

Thanks for any help.

camorri 02-13-2013 09:31 AM

Upgrading only works for one level up. It will fail, ( as you now know ) if you jump a level. See this document, it covers what you can do, and should not do.

-->https://help.ubuntu.com/community/UpgradeNotes

To get a running system, you will have to format the root partition, and do a clean install.

To recover things like your bookmarks, a lot depends how you had the system partitioned. If you had one partition, and everything in it, you will have to boot the system with a live CD, and copy off the files you need. You need to format the root partition to get rid of the mess you have made.

If /home is on a separate partition ( this is what I recommend any user do ) then recovery of user files is easier. Do not format /home. Your files will still be there. When you bring up firefox on the new install, you should be able to import the old bookmarks.

If you installed the system with wubi, its probably all lost.

yancek 02-13-2013 07:11 PM

You might give the link below a read, although it is probably too late for it to help now:

https://help.ubuntu.com/community/PreciseUpgrades

centurian 02-14-2013 03:27 AM

Thanks for all answers,

I started to install ubuntu 12.10 but there is a message:
Quote:

The system is running in low-graphics mode
didn't have such problem with live cd from 12.04!

It seems the 12.10 release made several changes to graphics drivers in contrast with the more stable 12.04: http://ubuntuforums.org/showthread.php?t=2072862

centurian 02-14-2013 08:16 AM

Installed 12.04 & restored home
 
Thanks to all,

I installed 12.04 and following this:
http://askubuntu.com/questions/77993...ated-in-p?rq=1
I managed to restore my home partition with my firefox bookmarks.


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