I have a desktop MSI PC that had Ubuntu 14.04, and I did a do-release-upgrade to go up to 16.04. The process lasted for a while, but ended with a window with error. Thinking that it could be fixed after a reboot.
The strange thing is that he did not let me restart or manually (with the mouse on the top right, I did not do anything) or by command line when doing sudo reboot
told me that the command did not exist ... So I decided to do a reset by pressing the power button.
The problem is that when booting again, I get a panic kernel, very similar to what happened to a user who reported in link
run-init: /sbin/init: No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: /sbin/init: No such file or directory
run-init: /etc/init: Permission denied
run-init: /bin/init: No such file or directory
/bin/sh: 0: Can't open splash Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00
Following the same instructions described there, I downloaded the latest version of ubuntu 16.04, to mount it on a USB and try to fix from a live version of ubuntu.
The instructions were as follows
I managed to access the disk, to continue with the process of installing packages, since apparently the upgrade was inconclusive, and the correct or necessary packages were not installed ....
Then once mounted, and executed the chroot, I try to do what ubuntu everywhere and pages recommend, do a apt-get update & amp; apt-get upgrade & amp; apt-get -f install
But they can not complete the instructions, and I always throw away errors of unfulfilled dependencies, in some places they recommend uninstalling the packages that have conflicts, but in all cases I saw that they were few packages and it was easy to uninstall them. Not so my case, and although it only throws me 64 packages with errors I can not understand which one I should eliminate to fix the upgrade.
I mention the errors that I get when executing the recommended commands to solve the problem:
apt-get update - > does not throw errors
apt-get upgrade - > E: Error, pkgProblemResolver :: Resolved generated breaks, this may be caused by held packages. E: Unable to correct dependencies
root@ubuntu:/etc/apt# sudo apt-get upgrade -f
sudo: unable to resolve host ubuntu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
deja-dup : Depends: libgnome-control-center1 (>= 1:3.3.5) but it is not installable
freerdp-x11 : Depends: libfreerdp1 (>= 1.0.1) but it is not installable
gnome-control-center : Depends: libcheese-gtk25 (>= 3.18.0) but it is not installed
Depends: libcheese8 (>= 3.18.0) but it is not installed
Depends: libcolord-gtk1 (>= 0.1.24) but it is not installed
Depends: libgnome-bluetooth13 (>= 3.12.0) but it is not installed
Depends: libgoa-1.0-0b (>= 3.16.2) but 3.10.3-0ubuntu1 is installed
Depends: libgtop-2.0-10 (>= 2.22.3) but it is not installed
Depends: gnome-control-center-data (>= 1:3.18.2-1ubuntu6) but 1:3.6.3-0ubuntu56.1 is installed
Depends: gnome-settings-daemon (>= 3.13.91) but 3.8.6.1-0ubuntu11.2 is installed
Depends: gsettings-desktop-schemas (>= 3.15.4) but 3.10.1-0ubuntu1 is installed
Recommends: unity-control-center-faces but it is not installed
Recommends: gnome-online-accounts but it is not installed
gstreamer0.10-plugins-good : Depends: libtag1c2a (>= 1.5) but it is not installable
gstreamer1.0-plugins-good : Depends: libtag1c2a (>= 1.5) but it is not installable
gvfs-fuse : Depends: gvfs (= 1.28.2-1ubuntu1~16.04.2) but 1.20.3-0ubuntu1.2 is installed
krename : Depends: libtag1c2a (>= 1.5) but it is not installable
libalgorithm-diff-xs-perl : Depends: perlapi-5.18.1 but it is not installable
libapparmor-perl : Depends: perlapi-5.18.2 but it is not installable
libapt-pkg-perl : Depends: perlapi-5.18.1 but it is not installable
libarchive13 : Depends: libnettle4 (>= 2.3) but it is not installable
libcairo-perl : Depends: perlapi-5.18.1 but it is not installable
libclone-perl : Depends: perlapi-5.18.1 but it is not installable
libcupscgi1 : Depends: libcups2 (= 1.7.2-0ubuntu1.8) but 2.1.3-4ubuntu0.3 is installed
libcupsimage2 : Depends: libcups2 (= 1.7.2-0ubuntu1.8) but 2.1.3-4ubuntu0.3 is installed
libcupsmime1 : Depends: libcups2 (= 1.7.2-0ubuntu1.8) but 2.1.3-4ubuntu0.3 is installed
libcupsppdc1 : Depends: libcups2 (= 1.7.2-0ubuntu1.8) but 2.1.3-4ubuntu0.3 is installed
libfile-fcntllock-perl : Depends: perlapi-5.18.1 but it is not installable
libfreerdp-core1.1 : Depends: libfreerdp-codec1.1 (>= 1.1.0~beta1+git20130629) but it is not installed
Depends: libwinpr-sysinfo0.1 (>= 1.1.0~beta1+git20130629) but it is not installed
libfreerdp-gdi1.1 : Depends: libfreerdp-codec1.1 (>= 1.1.0~beta1+git20130629) but it is not installed
libfreerdp-plugins-standard : Depends: libwinpr-sysinfo0.1 (>= 1.1.0~beta1+git20130629) but it is not installed
libglib-perl : Depends: perlapi-5.18.1 but it is not installable
libgnutls28 : Depends: libhogweed2 (>= 2.7) but it is not installable
Depends: libnettle4 (>= 2.7) but it is not installable
libgtk2-perl : Depends: perlapi-5.18.2 but it is not installable
libhtml-parser-perl : Depends: perlapi-5.18.1 but it is not installable
libio-pty-perl : Depends: perlapi-5.18.1 but it is not installable
libkfilemetadata4 : Depends: libtag1c2a (>= 1.5) but it is not installable
liblist-moreutils-perl : Depends: perlapi-5.18.1 but it is not installable
liblocale-gettext-perl : PreDepends: perlapi-5.18.1 but it is not installable
libnet-dns-perl : Depends: perlapi-5.18.1 but it is not installable
libnet-ssleay-perl : Depends: perlapi-5.18.2 but it is not installable
libpam-freerdp : Depends: libfreerdp1 (>= 1.0~beta5) but it is not installable
libpango-perl : Depends: perlapi-5.18.1 but it is not installable
libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.3) but 5.22.1-9ubuntu0.2 is installed
libperlio-gzip-perl : Depends: perlapi-5.18.1 but it is not installable
libpurple0 : Depends: perlapi-5.18.2 but it is not installable
libreoffice-calc : Depends: libetonyek-0.1-1 but it is not installed
Depends: libmwaw-0.3-3 but it is not installed
Depends: libodfgen-0.1-1 but it is not installed
Depends: liborcus-0.10-0v5 (>= 0.9.2-4ubuntu2) but it is not installed
Depends: librevenge-0.0-0 but it is not installed
Depends: libwps-0.4-4 but it is not installed
libreoffice-core : Depends: libclucene-contribs1v5 (>= 2.3.3.4) but it is not installed
Depends: libclucene-core1v5 (>= 2.3.3.4) but it is not installed
Depends: libcmis-0.5-5v5 but it is not installed
Depends: libeot0 but it is not installed
Depends: libglew1.13 (>= 1.12.0) but it is not installed
Depends: librevenge-0.0-0 but it is not installed
libreoffice-draw : Depends: libcdr-0.1-1 but it is not installed
Depends: libfreehand-0.1-1 but it is not installed
Depends: libmspub-0.1-1 but it is not installed
Depends: libmwaw-0.3-3 but it is not installed
Depends: libodfgen-0.1-1 but it is not installed
Depends: libpagemaker-0.0-0 (>= 0.0) but it is not installed
Depends: librevenge-0.0-0 but it is not installed
Depends: libvisio-0.1-1 but it is not installed
Depends: libwpg-0.3-3 but it is not installed
libreoffice-impress : Depends: libetonyek-0.1-1 but it is not installed
Depends: libmwaw-0.3-3 but it is not installed
Depends: libodfgen-0.1-1 but it is not installed
Depends: librevenge-0.0-0 but it is not installed
Recommends: libreoffice-avmedia-backend-gstreamer but it is not installed
libreoffice-ogltrans : Depends: libglew1.13 (>= 1.12.0) but it is not installed
libreoffice-writer : Depends: libabw-0.1-1v5 but it is not installed
Depends: libe-book-0.1-1 but it is not installed
Depends: libetonyek-0.1-1 but it is not installed
Depends: libmwaw-0.3-3 but it is not installed
Depends: libodfgen-0.1-1 but it is not installed
Depends: librevenge-0.0-0 but it is not installed
Depends: libwpd-0.10-10 but it is not installed
Depends: libwpg-0.3-3 but it is not installed
Depends: libwps-0.4-4 but it is not installed
libsocket6-perl : Depends: perlapi-5.18.2 but it is not installable
libsub-identify-perl : Depends: perlapi-5.18.1 but it is not installable
libsub-name-perl : Depends: perlapi-5.18.1 but it is not installable
libtext-charwidth-perl : Depends: perlapi-5.18.1 but it is not installable
libtext-iconv-perl : Depends: perlapi-5.18.1 but it is not installable
libtext-soundex-perl : Depends: perlapi-5.18.1 but it is not installable
libuuid-perl : Depends: perlapi-5.18.1 but it is not installable
libwinpr-sspi0.1 : Depends: libwinpr-sysinfo0.1 (>= 1.1.0~beta1+git20130629) but it is not installed
libwinpr-utils0.1 : Depends: libwinpr-sysinfo0.1 (>= 1.1.0~beta1+git20130629) but it is not installed
libxml-libxml-perl : Depends: perlapi-5.18.2 but it is not installable
libxml-parser-perl : Depends: perlapi-5.18.1 but it is not installable
mongodb-clients : Depends: libpcrecpp0v5 (>= 7.7) but it is not installed
mongodb-server : Depends: libpcrecpp0v5 (>= 7.7) but it is not installed
php5 : Depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.22) but it is not installable or
libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.22) but it is not installable or
php5-cgi (>= 5.5.9+dfsg-1ubuntu4.22) but it is not installable or
php5-fpm (>= 5.5.9+dfsg-1ubuntu4.22) but it is not installable
remmina-plugin-rdp : Depends: libfreerdp1 (>= 1.0~beta5) but it is not installable
rhythmbox : Depends: python3 (< 3.5) but 3.5.1-3 is installed
Depends: rhythmbox-data (= 3.0.2-0ubuntu2) but 3.3-1ubuntu7 is installed
Depends: gir1.2-rb-3.0 (= 3.0.2-0ubuntu2) but 3.3-1ubuntu7 is installed
rhythmbox-mozilla : Depends: rhythmbox (= 3.3-1ubuntu7) but 3.0.2-0ubuntu2 is installed
rhythmbox-plugin-cdrecorder : Depends: rhythmbox (= 3.3-1ubuntu7) but 3.0.2-0ubuntu2 is installed
rhythmbox-plugin-magnatune : Depends: rhythmbox (= 3.3-1ubuntu7) but 3.0.2-0ubuntu2 is installed
rhythmbox-plugin-zeitgeist : Depends: rhythmbox (>= 3.3-1ubuntu7) but 3.0.2-0ubuntu2 is installed
rhythmbox-plugins : Depends: rhythmbox (= 3.3-1ubuntu7) but 3.0.2-0ubuntu2 is installed
vlc-nox : Depends: libebml4 but it is not installable
Depends: libfreerdp1 (>= 1.0.1) but it is not installable
Depends: libmatroska6 but it is not installable
Depends: libsidplay2 but it is not installable
Depends: libtag1c2a (>= 1.7) but it is not installable
Recommends: libdvdcss2
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
apt-get -f install - > E: Error, pkgProblemResolver :: Resolved generated breaks, this may be caused by held packages. E: Unable to correct dependencies
(apparently very similar to the previous one) link
dpkg --configure -a - > error too, below the code
root@ubuntu:/etc/apt# dpkg --configure -a
Setting up ufw (0.35-0ubuntu2) ...
mv: '/lib/ufw/user.rules' and '/etc/ufw/user.rules' are the same file
dpkg: error processing package ufw (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up nfs-kernel-server (1:1.2.8-9ubuntu12.1) ...
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: Service rpcbind has to be enabled to start service nfs-kernel-server
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up cups-daemon (2.1.3-4ubuntu0.3) ...
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: warning: script 'teamviewer_start' missing LSB tags and overrides
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'friendly-recovery'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'friendly-recovery'
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'cron'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'cron'
insserv: There is a loop between service gunicorn and teamviewer_start if stopped
insserv: loop involving service teamviewer_start at depth 2
insserv: loop involving service gunicorn at depth 1
insserv: Stopping teamviewer_start depends on gunicorn and therefore on system facility '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mongodb-server:
mongodb-server depends on libpcrecpp0v5 (>= 7.7); however:
Package libpcrecpp0v5 is not installed.
dpkg: error processing package mongodb-server (--configure):
dependency problems - leaving unconfigured
Setting up dbus (1.10.6-1ubuntu3.3) ...
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: warning: script 'teamviewer_start' missing LSB tags and overrides
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'friendly-recovery'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'friendly-recovery'
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'cron'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'cron'
insserv: There is a loop between service gunicorn and teamviewer_start if stopped
insserv: loop involving service teamviewer_start at depth 2
insserv: loop involving service gunicorn at depth 1
insserv: Stopping teamviewer_start depends on gunicorn and therefore on system facility '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package dbus (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up initscripts (2.88dsf-59.3ubuntu2) ...
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: warning: script 'teamviewer_start' missing LSB tags and overrides
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'friendly-recovery'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'friendly-recovery'
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'cron'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'cron'
insserv: There is a loop between service gunicorn and teamviewer_start if stopped
insserv: loop involving service teamviewer_start at depth 2
insserv: loop involving service gunicorn at depth 1
insserv: Stopping teamviewer_start depends on gunicorn and therefore on system facility '$all' which can not be true!
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: warning: script 'teamviewer_start' missing LSB tags and overrides
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'friendly-recovery' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'friendly-recovery'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'friendly-recovery'
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'cron'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script 'cron'
insserv: There is a loop between service gunicorn and teamviewer_start if stopped
insserv: loop involving service teamviewer_start at depth 2
insserv: loop involving service gunicorn at depth 1
insserv: Stopping teamviewer_start depends on gunicorn and therefore on system facility '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up util-linux (2.27.1-6ubuntu3.3) ...
insserv: warning: script 'S99teamviewer' missing LSB tags and overrides
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rpcbind:
rpcbind depends on initscripts (>= 2.88dsf-13.3); however:
Package initscripts is not configured yet.
dpkg: error processing package rpcbind (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of keyboard-configuration:
keyboard-configuration depends on initscripts; however:
Package initscripts is not configured yet.
dpkg: error processing package keyboard-configuration (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ufw
nfs-kernel-server
cups-daemon
mongodb-server
dbus
initscripts
util-linux
rpcbind
keyboard-configuration
LOGS:
I put the main logs that I recommend to review
- /etc/apt/source.list - > link
- /var/log/dpkg.log - > I will paste it in pastebin, since it is very long, link
- /var/log/dist-upgrade/main.log - > link
Please, if someone can guide me to solve this problem, with the live USB-boot I could install it in a new partition, but the idea is not that ... I know it can be fixed, but I am half-entangled with the packages that I should be able to eliminate.