broken apt + fail to boot w/ init: nvidia-persistenced
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
[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?
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.
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.
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.
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).
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.
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
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?
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.
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.
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.
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.