LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-31-2014, 01:06 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Elementary OS Luna/Ubuntu based distro broken graphics after update


I am helping a friend with his Elementary OS Luna 12.04 distro.

He wanted to install this app to have his distro see his Android Tablet.
To do that he and I ran this:

Code:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp

sudo apt-get update

sudo apt-get upgrade
After rebooting the system it hung at the Elementary Splash Screen.
Rebooting again only gave the same result so we tried Ctrl + Alt + F2 and he signed in. I thought that the update broke the graphics (fglrx)
So in console mode he tried:
Code:
sudo ap-get install fglrx
Get http://us.archive.ubuntu.com/ubuntu/ precise-updates/restricted fglrx amd64 4 2:8 960- 0buntu1.1 [66.6MB
Get 2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/restricted fglrx-amdccle amd64 2:8 960-0ubunt1.1 [5,924 kb]
Fetched 72.5 MB in 2 min 19s [59 kB/s]
Selecting previously unselected package fglrx
Reading database... 175515 files and directories currently installed
Unpacking fglrx (from.../fglrx_2%3a8.
960-0ubuntu1.1_amd64.deb
One or more files have been altered since installation
Uninstall will not be compleated
See /etc/ati/fglrx-uninstall.log for details
dpkg: error processing
/var/cache/apt/archives/fglrx_
2%3a8.960-0ubuntu1.1_amd64.deb
(--)unpack:
subprocess new pre-installation
script returned error exit
status 1
Selecting previously unselected package
fglrx-amdcccle
Unpacking fglrx-amdcccle (from...
/fglrx-amdcccle_2%3a8.960-
0ubuntu1.1_amd64.deb

Errors were encountered while processing:
/var/cache/apt/archives/
fglrx_2%3a8.960-0ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I looked in the etc/ati/fglrx-uninstall.log

It said that the AMD Catalyst Proprietary Driver file is missing from the system.
To force uninstall, remove all installed file w/o verification, run:
/usr/share/ati/amd-uninstall.sh --force
Forcing uninstall is not reccommended and may cause system corruption.

This is not my computer but I need your help to help my friend.
Please advise as what we should try.
 
Old 01-31-2014, 04:08 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
This may help;
Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 01-31-2014, 05:24 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I tried
Code:
apt-get -f install
Using this cmd tries to install the driver but returns me to the same message again:
Code:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Maybe try apt-get upgrade again?
 
Old 01-31-2014, 07:45 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Ok I tried apt-get -f install and after that I tried apt-get upgrade again.

It just returns me to the same thing over and over again:
Code:
apt-get upgrade
Reading package lists... Done
You may want to run 'apt-get -f install' to correct these
The following packages have unment dependencies:
fglrx-amdcccle: Depends: fglrx but it is not installed
E: Unmet dependencies Try using -f
What can I do to fix this it's going in circles?
 
Old 02-01-2014, 01:05 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The easiest way to fix that would be to recover from the system backup you surely have made before adding an unsupported third party repository to this system, which is, as I get from the PM you sent me, a system your friend needs for his work.

If for whatever reason you don't have a backup start with running
Code:
dpkg --audit
 
Old 02-01-2014, 11:46 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Yes, TobiSGD that's right this Elementary OS distro is what he uses for his work.

Since the system hangs at the Elementary OS logo splash screen the only thing that worked was console mode only; unfortunately all the research and cmd's (dpkg -- configure -a & ap-get install -f) that I found online that others tried did not help.

I have given thought to locating the corrupt package (gvfs) and remove it along with removing the whole block of information about it and save the changes made in the /var/lib/dpkg/status. I did not do that because I wasn't sure if it was wise.

When class is over I will try dpkg --audit and work from there.

I hope to be able to fix this OS and if not I will have (as a last resort) to re-install it:-
The pressure is on me to fix this and so I'll soldier on-:-

Thank you for your help and advice it means alot to me during this stressful time.
 
Old 02-01-2014, 09:29 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Using dpkg --audit is helpful.

Code:
The following have been unpacked but not yet configured
They must be configured using dpkg --configure or the configure menu in dselect for them to work:
fglrx-amdcccle

dpkg --configure
Type dpkg --help about installing and deinstalling packages[*]
Use 'deselect' or 'aptitude' for user friendly package management
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force -help for a list of forcing options
Type dpkg -deb --help for help about manipulating *.deb files

Options marked[*] produce a lot of output -pipe it through 'less' or 'more'
Aside from using the 'dpkg' or "dpkg --install" command what command should I use to fix this system?

These options are creating confusion for me...Is this what I need to do?
Code:
dpkg --configure fglrx-amdcccle ?
 
Old 02-02-2014, 12:13 AM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The package is uppacked it's just not configured.
Not sure if dselect or aptitude is the answer.

Since this is not my computer I have to use caution.

Last edited by Ztcoracat; 02-02-2014 at 12:27 AM.
 
Old 02-02-2014, 12:30 AM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
what command should I use to fix this system?
There isn't "a command to fix this system".

You will need to identify what changes YOU made and reverse them.

Start by checking the apt/dpkg logs in /var/log to see what was done.

It might be a good idea to NOT keep installing stuff to see if it works (i.e. if you are in a hole - STOP DIGGING!), rather, try to carefully back out to the working state it was in previously, then reflect on the wisdom of adding a 3rd party repo (for a different OS) to the sources of a "production" machine.
 
Old 02-02-2014, 01:17 AM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I tried as a super user to get into the /var/log and the apt/dpkg log.
I used cat /var/log to view it. BTW, the Elementary OS is in console mode now, no GUI is present.
Console mode returned no such file or directory.
 
Old 02-02-2014, 01:20 AM   #11
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by descendant_command View Post
There isn't "a command to fix this system".

You will need to identify what changes YOU made and reverse them.

Start by checking the apt/dpkg logs in /var/log to see what was done.

It might be a good idea to NOT keep installing stuff to see if it works (i.e. if you are in a hole - STOP DIGGING!), rather, try to carefully back out to the working state it was in previously, then reflect on the wisdom of adding a 3rd party repo (for a different OS) to the sources of a "production" machine.
That stop digging lesson is a hard one to learn.
 
Old 02-02-2014, 01:56 AM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Here's what I think is what is going on.

Apt has been complaining that packages have unmet dependencies which is referring to the fglrx-amdcccle which depends on the fglrx-driver.

I (think) that has been the problem from the start.

The owner moved the amd.run (the script for the driver)file into the trash bin.

This was the AMD Catalyst Proprietary Linux Driver from the AMD website.
Which, correct me if I am wrong; is not the same as the fglrx_2%3a8.960-0buntu1.1_amd64.deb that's coming from the /var/cache/apt/archives-:-

Using the 'dpkg --audit" cmd that TobiSGD advised me to use makes it clear that the package is unpacked but not configured. Using "dselect" (unless I misunderstand, is the way to manage this unpacked yet unconfigured pkg) however: this is not an option because for one it (dselect) is not installed and when I attempt to install it doesn't work because the dependency problem is in my vision again.

Code:
The following packages have unmet dependencies:
fglrx-amdcccle:  Depends: fglrx but it is not installed
E: Unmet dependency Try using -f
Using -f fails as well.

How do I fix this?
 
Old 02-02-2014, 03:28 AM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
So you have installed the binary driver from AMD's website and the package from the repositories? There you go, now you know why it is recommended to not use the installer, but the driver from the repositories, unless you know what you are doing. In no case ever use both at the same time. Remove that package, remove the binary drivers from the installer (I don't have them installed, but there should be an uninstall script somewhere, maybe in /usr/share/ati or something similar), so that you at least have a working system with the free driver, then proceed from that point on.
 
1 members found this post helpful.
Old 02-02-2014, 03:36 PM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by TobiSGD View Post
So you have installed the binary driver from AMD's website and the package from the repositories? There you go, now you know why it is recommended to not use the installer, but the driver from the repositories, unless you know what you are doing. In no case ever use both at the same time. Remove that package, remove the binary drivers from the installer (I don't have them installed, but there should be an uninstall script somewhere, maybe in /usr/share/ati or something similar), so that you at least have a working system with the free driver, then proceed from that point on.
I wasn't sure if the AMD driver was installed. He is having trouble remembering if he installed the AMD driver or not. So; I checked with nano /usr/share/ati
the file opened in nano and the screen was blank. Nothing was in that file.

Is an empty file an indication that there is not a script & the driver is 'not installed' ?

If I use the Live Elementary OS DVD will it override the current installed fs?
(or) will it restore what he already has?
 
Old 02-02-2014, 03:55 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
/usr/share/ati (id that is the correct name, I don't use the proprietary driver) should be a directory, not a file. It seems that nano always shows an empty file when you try to open an existing directory, a quite nonsensical behavior, IMHO.
Please specify what you actually want to do with the Elementary DVD.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Won't Boot After Update, Elementary OS/Ubuntu 12.04 based Ztcoracat Linux - Newbie 9 10-13-2013 12:59 AM
LXer: 7 Things I like about Elementary OS Luna | Luna Review LXer Syndicated Linux News 0 09-03-2013 10:31 AM
LXer: Elementary OS Releases "Luna" Ubuntu Platform LXer Syndicated Linux News 0 08-11-2013 04:50 PM
LXer: Ubuntu Builder 2.3.1 Supports elementary OS Luna LXer Syndicated Linux News 0 11-16-2012 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration