Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Saturday, March 29, 2014

Oh Ubuntu, won't you ever win?

After several months of idling in my basement. I decided to fire up the ol' Ubuntu desktop in order to use one of the few apps I have on that OS that I don't currently have an equivalent on Windows. After successfully using the intended software, Ubuntu's Update Manager helpfully notified me that I needed hundreds of critical and recommended updates to software packages. I am fine with that, and figured it wouldn't hurt to update since it had been some months and I expected to need to use Ubuntu again more regularly.

After downloading and installing all the updates, I needed a reboot. After doing so, my desktop wouldn't come up due to errors like this: Xorg says the kernel module is of version 304.88 (The old version before I updated) but the driver components are of version 319.32 (The new version).

This isn't the first time I've gone down that road, and it usually doesn't end well. I don't know why security fixes can bring down the GUI of my desktop. But oh well.

Thankfully, to Google and AskUbuntu, the answer is so simple it brought tears to my weary eyes.

Thanks to a Mr. "Joren" for the solution:
 
First remove all the old drivers:
sudo apt-get purge nvidia*
Then reinstall the current drivers:
sudo apt-get install nvidia-current
Reboot, and your're good to go!
sudo reboot 

Worked like a charm.
 

Source: http://askubuntu.com/questions/349129/12-04-lts-wont-boot-after-nvidia-driver-upgrade

 

Wednesday, December 19, 2012

Uninstalling Xubuntu from Ubuntu 12.04

I have been trying to learn to love Ubuntu 12.04 since my previous upgrade experience. It has been no easy task.

Among other things, my PC is not cutting edge, but even running Firefox was beginning to slow down to a crawl. I have not yet determined if this was due to some specific software or driver error, the Gnome 3/Unity interface, or other background tasks fault.

Getting desperate I have been looking around for lighter weight alternatives. I tried installing Xubuntu, which is supposed to be much more bare bones than the flashy Unity desktop.

I installed it
sudo apt-get install xubuntu-desktop

That was all fine and good. I restarted and went into the Xubuntu desktop. First of all, what I didn't realize, and my mistake for being ignorant, it kind of adds a lot of other software into your system, changes the boot screen, and generally is a bit more invasive that I liked. In the end, it was performing better, but due to some persistent graphics issues I have been having with Ubuntu I couldn't see the whole desktop after logging in. From what I could see of the desktop it looks a lot like the Linux experience I had in the mid-2000's on Red Hat or SuSE distros, pretty bare-bones, almost Windows 95-ish. Not saying it's awful, but I almost have to say I like Windows 7 more now. At least it was fast!

So, how to uninstall?

Well it's more difficult than it might seem. I have followed these excellently well-documented steps

Ubuntu 12.04 – How to Completely Uninstall/Remove a Package/Software/Program

The one comment I had, (which I could not post, apparently my email or website flags me as a spammer) is that GEdit 3 which come with Ubuntu 12.04 does not have the Regular Expression find and replace capabilities shown in those steps. You must additionally go and install a Gedit regex replace plugin to do so.

For now, I am using the Unity 2d interface. It looks almost the same for me, feels pretty quick. I'll stick with it. Not saying I would rule out a switch to Xubuntu or another desktop in the future if unity continues to be trouble.



Sunday, November 4, 2012

Things you shouldn't do: or how I upgraded to Ubuntu 12.04: Precise Pangolin

A pangolin
A Pangolin
So I just moved to a new house, and now that I actually have room for my stuff, I dusted off my old Ubuntu desktop for the fun of it and set it up on a desk in my new basement. It has been several months since I used it, so after booting I get prompted by Ubuntu's Update Manager program to install a million updates for things that I probably never used. Fine, maybe there are some security fixes or something. I click "Install Updates" and away, we go. Not too long later, I get some errors about the Bootloader being out of disk space. That sounds troubling. So I Googled for a while and found some advice about cleaning up old packages, and I did all that, removed a bunch of games and other programs I didn't need. That seemed to solve things. I ran update manager again, and finished the install. Everything seemed great.

There was just one more problem. Update Manager had a little tiny message above the normal dialog to select packages. It said something like "Upgrade to Ubuntu 12.04 LTS". So my desktop was on 10.04. I had actually recently tried out the new version of Ubuntu on a VM using their prepackaged all-in-one Windows installer "Wubi". I didn't like it, and found the performance was horrible on my Windows 7 laptop. Opening a folder a document would take 30 seconds and literally lock me out of doing anything else. I wasn't crazy about the new "Unity" style OS face lift they now package. But regardless of that experience, I am now a well trained animal, and when my computer's operating system tells me I should upgrade, and they make it so easy to accept it, newer is always better, always more security issues resolved, defects fixed, I mean why wouldn't I want to upgrade? So I couldn't help myself after a couple of days I went back and started the upgrade process.

It ran all night long. Not necessarily because it took that long, but because every so often in the upgrade process it would sit waiting for a user prompt, usually for some third-party software license exception. Finally at the end of the process I had a new looking default desktop background, everything seemed great with the upgrade. It asked me to reboot and...

Ubuntu 12.04 default desktop background with nothing else.
Approximation of the Ubuntu screen after upgrade
Then I couldn't log in anymore. Somehow they managed to make it so when I type my password for my normal super user account it just goes back to the same login screen. When I logged in as the guest user, it gave me a bunch of pop ups that I didn't have permission, but then loaded a totally blank screen with just the new Ubuntu background and my mouse cursor. I was trapped. "Linuuuuux!!" Since that point, I've been trying to recover this PC. I downloaded a new 12.04 Ubuntu Live CD to boot with. From that you get into the option to either Try Ubuntu out or Install Ubuntu. I wasn't prepared to reinstall and lose my data yet.

So first and foremost I was looking into similar related problems like screen resolutions not being detected. I found a few tips, for example editing /etc/X11/xorg.conf and manually specify the Screen subsection with your resolution modes. However, of course, in the Try out Ubuntu from the Live CD none of your hard disks partitions are mounted. Even worse, in my case, I couldn't directly mount my partition containing my existing OS and data (/dev/sda5) was of type lvm2, which of course, the default Ubuntu doesn't have the packages for it. Somebody has gone through something similar and I was able to do those steps in the Live CD Ubuntu, the only difference is that I would mount the partitions as rw:

sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o rw,user ...
So that was half the battle. But once I had done that, I tried the edit to xorg.conf. I saved the file and rebooted. Still got the same "Not optimum mode" message on my monitor. I tried a few settings, but no luck. I decided to try a more radical solution: A reinstall using thie Live CD without overwriting my existing partitions and data. Unfortunately. Due to having the "lvm2" partition that contained my logical volumes from my existing install the installer doesn't recognize these are a partition! So I had to go into the Try Ubuntu option first, and then follow all the steps described above to install lvm2 and activate my Logical Group in the lvm2 partition, then try the install.

I went through the entire install and ended up with a error that it was unable to install the Bootloader! Great! I went through an exercise to resize partitions thinking that might be the cause see:
lvm-resizing-guide ,linux-lvm-resizing-partitions (note Ubuntu 12.04 ships with GParted v0.11 which doesn't support the lvm2 file system format!, so in my Live CD OS I had to uninstall that and manually install the 0.14 version.). However after all that, I ended up using these steps to successfully manually install the Grub boot loader and use the Boot Repair program. After all this work I ended up with the same result as my upgrade, I was unable to see anything when I logged in as a guest (didn't recognize my actual admin user and password).

At this point after struggling with it for two days, I've decided to just do a reinstall. I don't know who or what installed the LVM partition, or where the boot loader should go. So I just went with a straight up new install of Ubuntu 12.04 LTS Desktop edition over my existing PC and I told it to reformat my HDD


After reinstalling clean. I had still got the Not Optimum Mode from my monitor during boot up. But from the login screen onwards everything looked ok. I did start getting new errors from Ubuntu telling me that jockey-gtk had crashed. Always helpfully I did a good search and located a few similar bug reports on the ubuntu forums. Seems to be an Nvidia driver issue. So I did an
apt-get update and
apt-get upgrade
to make sure I had all the latest packages. Then run sudo jockey-gtk, this prompts me to install Additional Drivers, I selected (version current)[Recommended], it installed the Nvidia driver, but didn't solve the problem in the boot screen and then I get a "The application Compiz has closed unexpectedly." error and a really messed up garbled background instead of the desktop, looking at the error details, it said that I had "obsolete packages" and that I should update "unity, libunity-core-5.05, unity-common and unity-services". So I rebooted this time into "Unity 2D" and did the update manager  which had a ton of updates (funny, why didn't apt-get upgrade install these before?)

Even after all this, I was still getting weird Not optimum messages on my monitor on shut downs and start ups. Seems that I was hitting some flavor of this problem. What worked for me. Use your own judgement was to first edit the /etc/default/grub config file

sudo gedit /etc/default/grub

Change GRUB_CMDLINE_LINUX_DEFAULT="splash" (removed quiet).
Some answers for related questions tell you to set nomodeset. I tried this but had negative results...

Uncomment and change GRUB_GFXMODE=1280x1024
Default was something like 640x480, the 1280 resolution was the "optimum" resolution displayed by monitor in the error messages I was getting in start up.

Next update grub
sudo update-grub

I think followed steps in the above linked question's answer for the purple start up screen to force the graphics drivers to be loaded in start up by configuring
/etc/initramfs-tools/conf.d/splash.

Lastly, the other quirk which apparently is benign? Was that in the System Settings > Details it was reporting an "Unknown" graphics driver. This is apparently due to a missing library(?) mesa-utils that is needed for displaying the graphics driver information:
http://askubuntu.com/questions/151608/details-window-showing-unknown-driver-for-graphics
So following the steps:
sudo apt-get install mesa-utils

Solved that issue. A few reboots later and the splash screen came up and the login works fine on my brand new re-installed Ubuntu 12.04. Gotta love "Linux for Human Beings".

Edit: Courtesy of this Google+ post when #Linux briefly trended
Linux...