Upgraded from 11.10 to 12.04 now system hangs after booting

Asked by Cybertr0n313

I have a dual-boot system running XP and Ubuntu 11.10 on a HP PCm7060n. It stated that there was an update for 12.04. The system boots fine into windows, but under Ubuntu it loads to the 'splash page', showing the graphics (just before the login screen pops up) and hangs with the following results:

Checking battery state

NOTE: It stalls at this "checking battery state" for a long duration, and I eventually I hit the [enter key] repeatedly or it does nothing. After this it outputs the following and does nothing at all - PERIOD!]

*Start apparmor profiles
Skipping profile in /etc/apparmor.d /disable:usr.bin.firefox

*Setting sensor limits
speech-dispatcher disabled; edit /etc/default/speed-dispatcher

*Starting the winbind daemon einbind
Rather than invoking init scripts through /etc/init.d, use the service (8)
utility, e.g. service S25bluebooth start
initutl: Unknown job: S25bluetooth

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start (8) utility, e.g. start S25bluetooth

*PulseAudio configured for per-user sessions saned disabled; edit /etc/default/saned
*Checking battery state

note: [ the asterisk is yellow in color at the "PulseAudio line" and on the far end of the screen it says: [OK] for each output line.

any help is greatly appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
Cybertr0n313
Solved:
Last query:
Last reply:
Revision history for this message
Barry Drake (b-drake) said :
#1

First, are you using Ubuntu under wubi installed in Windows? Second, can you get a live-DVD, and boot into it using the 'Try Ubuntu' option. Please let us know the answer to both these questions before proceding.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#2

1. No, this install has been on my pc since version 8 something, so I never used the wubi.
2. Yes, I'm currently running the DVD now experimenting trying out different posts similar to mine.

UPDATE: During the hanging situation mentioned above, I jumped to a command line using CTRL+ALT+F1 and tried xterm.
I did get a partial-full boot, of what sense that makes .... (just got all-white squares for icons, black background and nothing more).
At this point i had a dialog box that showed:

*Run partial upgrade, not all packages installed.
---I choose the proceed with the partial upgrade

It then said:

*An upgrade 'presice' to 'oneiric' is not supported with this tool.

Thus, I can see that somewhere the install didnt fully install the upgrades, giving me the errors.

Revision history for this message
Barry Drake (b-drake) said :
#3

You can try some commandline operations to try to clean up the broken system. Try:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get --purge autoremove
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update && sudo apt-get dist-upgrade

also:
sudo apt-get install ubuntu-desktop^
but don't forget the caret at the end. Please report back here any error messages.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#4

I received an error for Thunderbird, but I dont use it (during the " " "dist-upgrade)

---Now booting....

Checking for disk drive errors.....

It found errors: The disk drive for /temp is not ready yet or not present . Its asking: Continue to wait, or Press S to skip mounting or M for manual recovery.

---I'm waiting, until I get a return reply or it "finds" the /tmp?

Revision history for this message
Cybertr0n313 (detroitraw) said :
#5

UPDATE: I continued to wait and the system rebooted. Now all I have is a blinking cursor in the right-top corner of the screen with a blinking: [OK]

Revision history for this message
Cybertr0n313 (detroitraw) said :
#6

UPDATE: says the same orig error in the error report

Revision history for this message
Barry Drake (b-drake) said :
#7

Where and what is the 'disk drive for /tmp ? Please tell us a bit more about your partitioning scheme including which drive different partitions are on. The installer seems to have failed to conform to whatever partitioning arrangement you used to have before the upgrade. If you need to save any data from your system now would be a good time assuming you can boot again.

If you cant boot from the hard drive, boot from the DVD to examine your drives and get access to any data you need.

Revision history for this message
BenginM (sary) said :
#8
Revision history for this message
Cybertr0n313 (detroitraw) said :
#9

Sorry about the delay, my weekends are usually very busy. I honestly don't know where/what the drive is for /tmp? I never encountered this error before or understand outside the obvious. I'll take a screen shoot of my partition layout for you to review.

[posting shortly]

@Sary Muhammad - I reviewed your link, which took me to two other pages and none of them gave a direct answer. Only various other paths to take that went over my head. Do you have anything more direct and to the point?

Revision history for this message
Cybertr0n313 (detroitraw) said :
#10

Here are the partition details:

http://i48.tinypic.com/2h81lvr.jpg

Revision history for this message
BenginM (sary) said :
#11

Right , straight to the point .. but there is no such thing as a simple answer with your situation , at this point i'd run the livecd again backup my data first. for both the files in windows and ubuntu.

looking at your partition table : are you able to boot to your current ubuntu box !

looking at it /tmp could be running out of space . When temporary storage is full strange things will happen, am not sure yet if you even have a separate partitions for /tmp . .. all i know is /tmp should get dump at shutdown and therefore be empty at start-up again.

You could check with dh and df -i , df -i shows i-node info and df alone (without -i) will show the free space on each partition,there should be free i-nodes and free space.

Now, to see where / is/was installed .. check your fstab .. /etc/fstab .. an see if the UUID there match's the output of ls -l /dev/disk/by-uuid

# i just noticed you've posted the error " An upgrade 'presice' to 'oneiric' is not supported with this tool. " is that even possible to run a partial upgrade in a text console !

if that error still percent . check your apt/sources.list and see if it still set to "presice" .. if it does check /etc/update-manager/release-upgrades and change from lts to normal .. then switch to real console Ctrl+Alt+F1 and execute the following :

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get clean
sudo apt-get --purge autoremove
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

then reboot, if that did not take you to the desktop , then if the error " The disk drive for /temp is not ready yet or not present . Its asking: Continue to wait, or Press S to skip mounting or M for manual recovery. " still percent .. try the following :

Press 'M' when asked to try to solve the problem manually.

In the console write the following, to remount / in Read-Write

mount -n -o remount,rw /

then finish the upgrade

sudo apt-get update
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade

and then reboot .

in case nothing from the above made a progress then please post the output of :

lshw -C Video

Revision history for this message
Barry Drake (b-drake) said :
#12

Your partitioning is VERY strange! Ubuntu would not have done that automatically, and I can't think how it could have happened, but 6.97 CiB of unallocated space at the BEGINNING of the drive, and no /dev/sda1 says a lot. Somehow, at some time in the past, /dev/sda1 has been deleted. No idea how or why. What is really a mystery to me is that Windows actually boots. It normally likes to have the first partition on it's NTFS drive. I know if it were me, I'd start over - and for me that would mean re-installing Windows, followed by an install of Ubuntu.

But I would warn that if you want both OS's on /dev/sda the only simple way to do that will be with /dev/sdb temporarily disconnected OR to install Windows to one drive and Ubuntu to the other.

It might be possible to mend your broken system, but it's going to take a huge amount of time and a high level of expertise with Linux to rescue what you have got now and run it properly. If you have been using this box since your first install of 8.04 and it was entirely partitioned to NTFS with Windows originally, something you have tried during this time must have included some serious alterations to your partitioning to have what you now have.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#13

@b-drake -
I never really noticed the sda1 situation until you mentioned it. I have came to the conclusion of wiping and starting over a while ago, now more stringently after reading your comments. Yet, its the summer-break for me and I'm in grad school...I don't want to "think" or use my brain at all for the summer. Just to get my windows installed and configured properly will take me 2 days - minus COD breaks. smh! In all, thank you for your assistance, its appreciated.

@sary -
You are correct, there is no simple answer, because I have been searching online quite a bit... I was hoping that you found the answer that I couldn't.....Yes I can boot into the nix box. Inshallah these last steps are successful. I'll try them and report back what happens.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#14

@sary - I dont know where the /is/ is located or how to pull up the uuid for it but here is a screen shoot of the other half of your question. http://s16.postimage.org/a1oto8h7p/error.jpg

After following your steps it now gives me only a blinking cursor with [OK] in the top right corner.

No matter now long I wait or even after hitting the enter key repeatedly (as before) it still does nothing.

Revision history for this message
BenginM (sary) said :
#15

Hey Cybertro0n131 ,

looking at df output , to my knowledge you have 41% left on /sda5 which is your ubuntu /root partation .

I though you might be out of space there .

as for UUID , take a look at

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

I can't help but to think that its either your Graphic card is causing this , or it has something to do with the filesystem .

So , at this point id check the filesystem for /root .. from recoery mode , or

as for GRUB bootloader : if you GRUB menu dose not show up after the bios automatically , press shift to bring it up , then press , now highlight the default ubuntu kernel (usually the top one), and rather than pressing enter, press E to edit.

Press DOWN ARROW until you get to the line that starts with linux /boot , then add nomodeset after “quiet splash” finally , press control+X or , press F10 to boot the modified grub entry.

if that passed you to the Desktop , please reply from there and don't just reboot quite yet .

Revision history for this message
BenginM (sary) said :
#16

* after pressing Shif , and Hilgihting the kernel , you then press " e " ..

Revision history for this message
Cybertr0n313 (detroitraw) said :
#17

@sary - GRUB has never had a problem loading, so it think it may be the file system. How do I check and repair this area? Until I get more experienced instructions from you I will "experiment" with in recovery mode with something that works.

I don't think its the graphic card, it never was a factor before but I tried the method mentioned and it wasnt successful.

I still get the same screen when I try to load. I just jumped to a terminal and used startx...from here I still get the white squares for icons and its giving me the "Not all updates can be installed - Rin a partial upgrade, to install as many updates as possible" ?? I thought I did this in the previous steps, so definitely think its my filesystem specifically.

Revision history for this message
BenginM (sary) said :
#18

from recovery mode , select the root shell

fdisk -l /dev/sda

note down your root partition , you need to replace xxx with the right device name shown from fdisk -l

now execute

umount /dev/sxx

and then

fsck -a /dev/sxx1

# if its not a graphic card issue it could be the driver in use causing this issue , or the upgrade process missed some packages needed for X .

so , you could also try this within recovery mode as root:

apt-get remove --purge xserver-xorg

apt-get install xserver-xorg

dpkg-reconfigure xserver-xorg

--You will be asked a bunch of questions about your hardware, do your best to answer. If you don’t know the answer, take an educated guess or use the default selection.
--When asked about video drivers, select “ati” if you have an ATI card, “nv” if you have an Nvidia card, or “intel” if you have an onboard Intel graphics card. Otherwise select “vesa” – this is more of a fallback driver if the other options don’t work, it is useful to select this to get into the GUI initially, then install the propriety drivers if needed (step 4).
--When asked about screen resolutions, use TAB to move and SPACEBAR to select your monitor’s max resolution and everything less.

# as for that error , i think it could be that your /etc/apt/sources.list is messed-up

you could check it after you switch to a virtual console (tty) , open the file with vi or vim

cat /etc/apt/sources.list .. and see which code name is set there for the ubuntu release " Change any occurrence of precise to oneiric. " and disable any 3rd party repo/ppa cumment it out form the list by adding # in front of of the line , the lin sould look like #deb http://archive.canonical.com/ubuntu precise partner
#deb-src http://archive.canonical.com/ubuntu precise partner

to change the source list , use vi or vim

sudo vim /etc/apt/sources.list

then save and quite vim :wq

then

sudo apt-get check
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

apt-get update will update your local package database with the versions of packages currently in the repos.

apt-get upgrade will update your packages to the latest version of the package in your local package database.

apt-get dist-upgrade will move you from release to release.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#19

@Sary- I sincerely appreciate your assistance and patience. I tried the steps listed and it: locked up and did nothing; gave me a new error; game me the same error; or booted and then went into checking the drive for errors and loading a black background with white icons.

Thus, I gave up, and reinstalled out of frustration early this morning....now the installs Ethernet isn't working, so I have no internet under this install. I'm currently running the windows just to post this message. I see why this version 12.04 is LTS, its buggy as shi*. This literally doesn't make any sense, from one extreme to another. smh

Revision history for this message
BenginM (sary) said :
#20

Cybertr0n313, hey mate .. i know what you mean , and your frustration is understandable .

 it seems like Ubuntu wasn't able to find the drivers for your network card !

does your router have DHCP enabled .. enable it if its not set

switch to a virtual console and do
sudo ifconfig -a

if eth0 is listed there , then do

sudo ifconfig eth0

sudo dhclient

this will cause the network card to go into DHCP mode and try to obtain an IP address from the router.

also , it would be helpful if you could gather more info about your network device ..

ifconfig -a

cat /etc/network/interfaces

lspci -nn |grep Ethernet

Revision history for this message
BenginM (sary) said :
#21

to find the unclaimed ethernet device, discover it's PCI Vendor IDs .

Revision history for this message
BenginM (sary) said :
#22

The following needs to go into your /etc/networking/interfaces file:

auto ethX
iface ethX inet dhcp

X depends on what interface showed up in ifconfig .. if it listed eth0 then replace X with 0

The first line "activates" management of the interface, the second line sets it to DHCP and IP.

However, if you don't even see any ethX interfaces when you do ifconfig -a, it's a driver issue (Ubuntu isn't even seeing the interface). To solve this, either check from Windows' device manager for the PCI Vendor ID and Device ID of your ethernet card, which you can cross-reference here and see if you can find a driver for that (Vendor ID is the manufacturer, Device ID is the acutal model of the ethernet card). An alternative in-linux way to do this is via lspci.

In Windows 7, getting the Vendor/Device IDs is through the Device Manager -- open up the Network Interfaces node, double click on your network card, click on 'detail', and select "Hardware IDs" from the drop-down list. The Vendor ID are the 4 hexadecimal digits after the VEN_ prefix, and the device id is the 4 hex digits after the &DEV_ immediately following the vendor.

Revision history for this message
BenginM (sary) said :
#23

cross reference link here http://www.pcidatabase.com/

Revision history for this message
Cybertr0n313 (detroitraw) said :
#24

Excellent! Its working fine. I also shut down and restart the system an additional two times. Its booting a little slow but other than that its running fine. We can consider this situation now [SOLVED]

Again, thank you for your assistance mate!

Revision history for this message
BenginM (sary) said :
#25

Nice , i am glad to see you back on track :)

as for the slow boot , it depends on different area .. you know that - Processor , Memory , Graphics

i'd check dmesg and see if there are any complaining/errors

Now , how about you kindly join us on freenode IRC Network , to meet and us and celebrate your successful , a party or something :D

you will find us in #ubuntu , and #ubuntu-beginners .. and perhaps you might be interesting in some part of ubuntu and join teams .

you can use your favorite IRC client , and /connect chat.freenode.net

or using the web interface , http://webchat.freenode.net/

Salutation.

Revision history for this message
Cybertr0n313 (detroitraw) said :
#26

Ha! I may stop in for a few, but i stop irc'n a while ago.

salutations