LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   broken apt + fail to boot w/ init: nvidia-persistenced (https://www.linuxquestions.org/questions/ubuntu-63/broken-apt-fail-to-boot-w-init-nvidia-persistenced-4175528488/)

Drone4four 12-16-2014 04:55 PM

broken apt + fail to boot w/ init: nvidia-persistenced
 
X won’t start. I can’t even get to gdm on boot. When I boot, it’s just a black screen. I used VTs to get my dmesg and to tinker with apt. My problem might have something to do with a recent proprietary nvidia driver update.

Here is my dmesg:
https://www.dropbox.com/s/8coqimlgqg...c2k14.txt?dl=0
Take note near the end where it says:
Code:

[17.227500] init: nvidia-persistenced main process (1999) terminated with status 1
I Googled that line and came across some forum threads related to corrupted nvidia drivers. As per some of the advice for other forum participants, I tried purging my system of everything nvidia with sudo apt-get purge nvidia-*, however I got this:
Code:

Reading package lists...
Building dependency tree...
Reading state information...
Package 'libgl1-nvidia-alternatives' is not installed, so not removed
Package 'nvidia-vdpau-driver' is not installed, so not removed
Package 'nvidia-driver' is not installed, so not removed
Package 'nvidia-glx' is not installed, so not removed
Package 'nvidia-kernel-dkms' is not installed, so not removed
Package 'nvidia-kernel-amd64' is not installed, so not removed
Package 'nvidia-kernel-686-pae' is not installed, so not removed
Package 'nvidia-kernel-486' is not installed, so not removed
Package 'nvidia' is not installed, so not removed
Package 'nvidia-313' is not installed, so not removed
Package 'nvidia-experimental-313' is not installed, so not removed
Package 'nvidia-experimental-319' is not installed, so not removed
Package 'nvidia-325' is not installed, so not removed
Package 'nvidia-325-updates' is not installed, so not removed
Package 'nvidia-experimental-325' is not installed, so not removed
Package 'nvidia-experimental-331' is not installed, so not removed
Package 'nvidia-libopencl1-dev' is not installed, so not removed
Package 'libgl1-nvidia-glx' is not installed, so not removed
Package 'nvidia-cuda-debugger' is not installed, so not removed
Package 'nvidia-libopencl1' is not installed, so not removed
Package 'nvidia-compute-profiler' is not installed, so not removed
Package 'nvidia-cuda-profiler' is not installed, so not removed
Package 'nvidia-opencl-profiler' is not installed, so not removed
Package 'nvidia-settings-304' is not installed, so not removed
Package 'nvidia-settings-304-updates' is not installed, so not removed
Package 'nvidia-settings-310' is not installed, so not removed
Package 'nvidia-settings-310-updates' is not installed, so not removed
Package 'nvidia-settings-313-updates' is not installed, so not removed
Package 'nvidia-settings-319' is not installed, so not removed
Package 'nvidia-settings-319-updates' is not installed, so not removed
Package 'nvidia-settings-experimental-304' is not installed, so not removed
Package 'nvidia-settings-updates' is not installed, so not removed
Package 'nvidia-173' is not installed, so not removed
Package 'nvidia-173-dev' is not installed, so not removed
Package 'nvidia-310' is not installed, so not removed
Package 'nvidia-310-dev' is not installed, so not removed
Package 'nvidia-310-updates' is not installed, so not removed
Package 'nvidia-310-updates-dev' is not installed, so not removed
Package 'nvidia-313-updates' is not installed, so not removed
Package 'nvidia-313-updates-dev' is not installed, so not removed
Package 'nvidia-experimental-310' is not installed, so not removed
Package 'nvidia-experimental-310-dev' is not installed, so not removed
Package 'bumblebee-nvidia' is not installed, so not removed
Package 'boinc-nvidia-cuda' is not installed, so not removed
Package 'nvidia-cg-dev' is not installed, so not removed
Package 'nvidia-cg-doc' is not installed, so not removed
Package 'nvidia-cg-toolkit' is not installed, so not removed
Package 'nvidia-cuda-dev' is not installed, so not removed
Package 'nvidia-cuda-doc' is not installed, so not removed
Package 'nvidia-cuda-gdb' is not installed, so not removed
Package 'nvidia-cuda-toolkit' is not installed, so not removed
Package 'nvidia-nsight' is not installed, so not removed
Package 'nvidia-opencl-dev' is not installed, so not removed
Package 'nvidia-profiler' is not installed, so not removed
Package 'nvidia-visual-profiler' is not installed, so not removed
Package 'nvidia-304' is not installed, so not removed
Package 'nvidia-304-dev' is not installed, so not removed
Package 'nvidia-304-updates' is not installed, so not removed
Package 'nvidia-304-updates-dev' is not installed, so not removed
Package 'nvidia-319-dev' is not installed, so not removed
Package 'nvidia-319-updates' is not installed, so not removed
Package 'nvidia-319-updates-dev' is not installed, so not removed
Package 'nvidia-331-dev' is not installed, so not removed
Package 'nvidia-331-updates' is not installed, so not removed
Package 'nvidia-331-updates-dev' is not installed, so not removed
Package 'nvidia-331-updates-uvm' is not installed, so not removed
Package 'nvidia-331-uvm' is not installed, so not removed
Package 'nvidia-current' is not installed, so not removed
Package 'nvidia-current-dev' is not installed, so not removed
Package 'nvidia-current-updates' is not installed, so not removed
Package 'nvidia-current-updates-dev' is not installed, so not removed
Package 'nvidia-experimental-304' is not installed, so not removed
Package 'nvidia-experimental-304-dev' is not installed, so not removed
Package 'nvidia-libopencl1-304' is not installed, so not removed
Package 'nvidia-libopencl1-304-updates' is not installed, so not removed
Package 'nvidia-libopencl1-331-updates' is not installed, so not removed
Package 'nvidia-opencl-icd-304' is not installed, so not removed
Package 'nvidia-opencl-icd-304-updates' is not installed, so not removed
Package 'nvidia-opencl-icd-331-updates' is not installed, so not removed
Package 'nvidia-modprobe' is not installed, so not removed
Package 'nvidia-common' is not installed, so not removed
Package 'mate-sensors-applet-nvidia' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libelementary-bin : Depends: libefl but it is not going to be installed
 libelementary1 : Depends: libefl but it is not going to be installed
 terminology : Depends: elementary but it is not going to be installed

So apparently there aren’t very many nvidia proprietary drivers installed. I then tried installing an nvidia driver. I picked 319 so as to avoid the buggy bleeding edge (like 33x version). Here is me trying to install 319:
Code:

Reading package lists...
Building dependency tree...
Reading state information...
nvidia-319 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libelementary-bin : Depends: libefl but it is not going to be installed
 libelementary1 : Depends: libefl but it is not going to be installed
 nvidia-319-dev : Depends: nvidia-331-dev but it is not going to be installed
 nvidia-319-updates : Depends: nvidia-331-updates but it is not going to be installed
 nvidia-319-updates-dev : Depends: nvidia-331-updates-dev but it is not going to be installed
 terminology : Depends: elementary but it is not going to be installed

So I do have nvidia-319 already installed? If that’s true, then why when I tried to purge, did it say that it isn’t installed. Back up there it does say:
Code:

Package 'nvidia-319-dev' is not installed, so not removed
Package 'nvidia-319-updates' is not installed, so not removed
Package 'nvidia-319-updates-dev' is not installed, so not removed

What is going on? As you can see, there are some corrupted EFL packages in my system, but I don’t think that has anything to do with x not being able to start. I entered sudo apt-get install -f anyways. See here:
Code:

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  emotion-generic-players evas-generic-loaders libefl libefl-bin libefl-data
  libelementary-bin libelementary1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  elementary libefl libefl-bin libefl-data
The following NEW packages will be installed:
  elementary libefl libefl-bin libefl-data
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
64 not fully installed or removed.
Need to get 0 B/15.1 MB of archives.
After this operation, 34.9 MB of additional disk space will be used.
(Reading database ... 658557 files and directories currently installed.)
Preparing to unpack .../libefl-data_1.11.3-0trusty0_all.deb ...
Unpacking libefl-data (1.11.3-0trusty0) ...
Preparing to unpack .../libefl-bin_1.11.3-0trusty0_amd64.deb ...
Unpacking libefl-bin (1.11.3-0trusty0) ...
Preparing to unpack .../libefl_1.11.3-0trusty0_amd64.deb ...
Unpacking libefl (1.11.3-0trusty0) ...
Preparing to unpack .../elementary_20140904-1_amd64.deb ...
Unpacking elementary (20140904-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...

To capture these shell messages, I used sudo apt-get -f install -y >>file.txt which for some reason broke half way through and didn’t finish capturing the rest of the output for my apt-get -f install. Oh well.

Anyways, is my broken package tool related to my experience with being unable to boot? What’s wrong with my system and what do I have to do to get x to start? Is there any other information I can provide to help you ppl help me?

evo2 12-16-2014 06:58 PM

Hi,

what is the state of your packages now? Did you run "apt-get -f install" again?

To debug X11 problems you should investigate the X11 log file, usually found at /var/log/Xorg.0.log You probably have a /etc/X11/xorg.conf that is instructing X11 to use drivers that don't exist on your system any more.

Evo2.

Drone4four 12-16-2014 08:29 PM

Thanks evo2. You said:

Quote:

To debug X11 problems you should investigate the X11 log file, usually found at /var/log/Xorg.0.log You probably have a /etc/X11/xorg.conf that is instructing X11 to use drivers that don't exist on your system any more.
Here are the Xorg.x.log files in my /var/log/ directory: https://www.dropbox.com/s/v1w0jcmke1...14.tar.gz?dl=0
I hesitated to include them in my initial post because for some reason I see that they are all dated 2014-04-13. I figured that they wouldn't be helpful today in December 20014. Alas, here they are. What can you make of them?

Quote:

what is the state of your packages now? Did you run "apt-get -f install" again?
I did run apt-get -f install. I tried to capture the output with 'sudo apt-get -f install -y >>file.txt' as I said. But the capture breaks mid way through.

evo2 12-16-2014 08:37 PM

Hi,

Xorg-troubleshootDec2k14.tar.gz does not appear to be a gzipped tar file. My system seems to think it is a rar file but unrar failled to extract its contents. You need to a log file that corresponds to when you last tried to start X11 (and after you removed all the nvidia packages).

I understand that your tried to redirect the output, but try without redirecting the output and read what it says.

Evo2.

Drone4four 12-16-2014 10:26 PM

Here is a compressed rar file with my Xorg.x.log contents: https://www.dropbox.com/s/yufrdvyd8w...c2k14.rar?dl=0
Sorry for the confusion with the tar ball initially.

I can boot into a live environment, chroot into my system and then paste the output of 'sudo apt-get -f install -y'. I'll get to that in a few days (maybe tomorrow if I am really lucky).

Thanks, Evo2.

evo2 12-16-2014 10:41 PM

Hi,
Quote:

Originally Posted by Drone4four (Post 5285935)
Here is a compressed rar file with my Xorg.x.log contents: https://www.dropbox.com/s/yufrdvyd8w...c2k14.rar?dl=0
Sorry for the confusion with the tar ball initially.

I don't know what you are using to crate your rar files (or why you are using rar files), but unrar on my Debian Jessie system is unable to unpack it.
Code:

% unrar ~/.data/downloads/Xorg-troubleshootDec2k14.rar

unrar 0.0.1  Copyright (C) 2004  Ben Asselstine, Jeroen Dekkers


Extracting from /home/evo2/.data/downloads/Xorg-troubleshootDec2k14.rar

Extracting  Xorg.2.log                                                Failed   
Extracting  Xorg.2.log.old                                            Failed   
Extracting  Xorg.3.log                                                Failed   
Extracting  Xorg.3.log.old                                            Failed   
Extracting  Xorg.4.log                                                Failed   
Extracting  Xorg.0.log                                                Failed   
Extracting  Xorg.0.log.old                                            Failed   
Extracting  Xorg.1.log                                                Failed   
Extracting  Xorg.1.log.old                                            Failed   
9 Failed
% dlocate $(which unrar)
unrar-free: /usr/bin/unrar-free
% dpkg -l unrar-free
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version      Architecture  Description
+++-=================-=============-=============-========================================
ii  unrar-free        1:0.0.1+cvs20 amd64        Unarchiver for .rar files

Quote:

Originally Posted by Drone4four (Post 5285935)
I can boot into a live environment, chroot into my system and then paste the output of 'sudo apt-get -f install -y'. I'll get to that in a few days (maybe tomorrow if I am really lucky).

Seems I've missed something here. The system doesn't boot? If that is the case we should completely forget about your X11 problems for now. Please clarify the situation.

Evo2.

Drone4four 12-17-2014 09:33 PM

My apologies for the confusion, Evo2. This post should clarify the two issues at hand.

Here is a proper tallball of all my Xorg.x.logs: https://www.dropbox.com/s/ar7v36i8io...VD.tar.gz?dl=0

And here is the output of sudo apt-get -f install directly from my chroot shell: https://paste.ee/p/VUQ9e

evo2 12-17-2014 10:43 PM

Hi,
Quote:

Originally Posted by Drone4four (Post 5286709)
My apologies for the confusion, Evo2. This post should clarify the two issues at hand.

Here is a proper tallball of all my Xorg.x.logs: https://www.dropbox.com/s/ar7v36i8io...VD.tar.gz?dl=0

For some reason all those log files have exactly the same timestamp so I'm not sure which is the most recent one. Looking in Xorg.0.log I see that X is trying to load some nvidia drivers that you have uninstalled. You might be able to get X to run using free drivers if you move your config file out of the way. For example
Code:

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.back
Quote:

Originally Posted by Drone4four (Post 5286709)
And here is the output of sudo apt-get -f install directly from my chroot shell: https://paste.ee/p/VUQ9e

Ouch. You have conflicts between enlightenment packages. I notice also that you have a significant number of different sources. It looks like you have tried to install enlightenment from more than one place. I recommend uninstalling all the enlightenment packages and removing the bohdi sources. Or you can try to use "apt-cache policy" to work out where the packages are coming from and then pick and choose which ones to remove. Mixing different 3rd party sources is the cause of most apt dependency problems that I see in the wild.

For a quick fix (that may not work) you could try remove just the offending package
Code:

sudo apt-get remove efl
and while you're at it
Code:

sudo apt-get autoremove
But anyway, can you explain your situation in regard to doing this in a chroot instead of booting into the OS?

Evo2.

Drone4four 12-18-2014 11:16 PM

Quote:

Originally Posted by evo2 (Post 5286738)
For some reason all those log files have exactly the same timestamp so I'm not sure which is the most recent one. Looking in Xorg.0.log I see that X is trying to load some nvidia drivers that you have uninstalled. You might be able to get X to run using free drivers if you move your config file out of the way. For example
Code:

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.back

Booting directly into my O/S into shell without a GUI (b/c X is broke), I noticed that I didn't have an xorg.conf in my /etc/X11. All I had was an xorg.conf.failsafe file - - a file I have never seen or heard of before. Strange. So I moved that file by adding a .bak file extension. I attempted startx and it didn't work. I held my breath and rebooted but turned out that the problem persists. I still can't load an x session and gdm still won't launch.


Quote:

Ouch. You have conflicts between enlightenment packages. I notice also that you have a significant number of different sources. It looks like you have tried to install enlightenment from more than one place. I recommend uninstalling all the enlightenment packages and removing the bohdi sources. Or you can try to use "apt-cache policy" to work out where the packages are coming from and then pick and choose which ones to remove. Mixing different 3rd party sources is the cause of most apt dependency problems that I see in the wild.
Here is my apt-cache: https://paste.ee/p/3tnNw

Quote:

For a quick fix (that may not work) you could try remove just the offending package
Code:

sudo apt-get remove efl
and while you're at it
Code:

sudo apt-get autoremove

Nah, that didn't work. See here: https://paste.ee/p/O1eGK

Quote:

But anyway, can you explain your situation in regard to doing this in a chroot instead of booting into the OS?
Yes, I will explain that when I am back on Windows 7.

Drone4four 12-18-2014 11:32 PM

I chrooted into my box from a live CD so that I could copy and paste the output from sudo apt-get install -f. Remember? I was trying to capture the output by redirecting to a text file but it stopped half way through. Initially when I tried to troubleshoot this problem, I had booted in my native Ubuntu installation. Since X was broken, I was redirecting my output to text files and them copying over to my Dropbox folder. I started Dropbox in my shell and when I booted into my Windows 7 O/S, there were my text files. This also explains why all my Xorg.0.log files all have the same time stamps. I had copied them over to my Dropbox folder and synced them to the cloud. When I arrived on Windows 7, the file system stamped them in the present day. In retrospect, I prolly shoulda zipped them first and then transfer the zip file. Oh well.

By the way, here are the contents of my /etc/X11: https://www.dropbox.com/s/jjlgpm77ys...ic.tar.gz?dl=0

Thank you Evo2 for helping me out.

evo2 12-19-2014 12:54 AM

Hi,

ok regarding the chroot approach I think if you use the "script" command to record your terminal sessions.

Regarding your X config I see xorg.conf.failsafe.bak dated Dec 14. It tries to use the nvidia driver. Presumably this was in place as xorg.conf when you were unable to start X and was the cause of your problems. Please try to start X again and post the new /var/log/Xorg.0.log (or similar) that is created.

Evo2.

Drone4four 12-19-2014 11:50 AM

1 Attachment(s)
Quote:

Originally Posted by evo2 (Post 5287355)
ok regarding the chroot approach I think if you use the "script" command to record your terminal sessions.

I'll keep this in mind for next time. Thanks for tipping this feature my way.

Quote:

Regarding your X config I see xorg.conf.failsafe.bak dated Dec 14. It tries to use the nvidia driver. Presumably this was in place as xorg.conf when you were unable to start X and was the cause of your problems. Please try to start X again and post the new /var/log/Xorg.0.log (or similar) that is created.
See attached for my latest Xorg.0.log.
For those not members of this forum who still want access to the attached file, here is a dropbox link: https://www.dropbox.com/s/8gololwqmq...org.0.log?dl=0

JimKyle 12-21-2014 04:03 PM

There's no /etc/X11/xorg.conf file, by default, in any recent *buntu installation. They stopped providing it several years back. However, one can be created manually, owned by root with 644 permissions, and will be used if it exists.

Your most recent log file indicates a problem with an Nvidia module; it also indicates that the system is loading a noveau module also, which is the open-source driver for Nvidia cards. I'm not quite sure from where these are being called, but would look first at /etc/modprobe.d for conf files containing their names.

Meanwhile, you might find it helpful to get to the grub menu at boot time, by pressing the left shift key as soon as the initial BIOS screen goes away, then selecting the topmost entry, pressing "e" to enter editing mode, scrolling down to the line containing "quiet splash" and adding "nomodeset" as a third word to that string, finally pressing CTRL-X to continue booting. This MAY (or may not) let you get into the desktop to do some troubleshooting direct.

Drone4four 12-23-2014 05:11 PM

Cheers for the advice, jim

I tried appending the nomodeset parameter via grub (to the line with quiet splash) and X still wouldn’t start. Here is the Xorg.0.log produced after I tried startx in a VT shell: https://www.dropbox.com/s/wu9c8134k2...c2k14.log?dl=0

There was no modprobe.d file in /etc/ Rather, nomodprobe.d was a directory. Here were the contents: https://www.dropbox.com/s/v9qmcy5u7g....d.tar.gz?dl=0

The contents of nvidia-331_hybrid.conf.dpkg-new are as follows:
Code:

# This file was installed by nvidia-331
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off


Drone4four 12-25-2014 12:19 PM

I have Ubuntu running perfectly now. The solution was simple.

I commented out my bodhi packages in my sources and then ran sudo apt-get autoremove -f .

This automatically installed the latest kernel and then built an nvidia kernel module. This was previously getting blocked by the broken efl packages.

Thanks, jim and evo2.


All times are GMT -5. The time now is 11:36 PM.