Debian 9 Stretch hungs at boot

Help with issues regarding installation of Debian

Debian 9 Stretch hungs at boot

Postby ramiv » 2018-08-28 12:13

Hello,

First of all, I want to thank you for creating and maintaining this website. Second, If this post isn't in the right place please move it (I thought this forum is the most appropriate).

I Installed Debian 9 Stable recently on my 3yr old PC as a dual boot with WIN8 which I used to run. Both in legacy boot mode.
Debian worked like a charm out of the box. I chose to install NVIDIA proprietary drivers and this also worked like a charm.

Today I did two things after which the system would not boot into Debain anymore and would just stack at a black screen. The two things are:
1. Installed transmission (using the "apt-get" command) which seemed to install well and work.
2. As per apt-get recommendation I ran "apt autoremove" in order to remove lots of unneeded packages (it was around 900 MBs). These packages might have been installed since during the installation I chose to install both XFCE and KDE desktop environments. Though in the end I stacked to XFCE and removed KDE later.

After this I did a reboot and it did not managed to make it to the other side.

I tried to search the web and also asked on the #debian IRC channel on OFTC server.

Using the GRUB advanced options I ran the Debian GNU/Linux, with linux 4.9.0-7amd64 and linux 4.9.0-8amd64 with the quite option removed. I got is the following:

4.9.0-7:
Image

and 4.9.0-8
Image

I tried to search the web for solutions. I did try to do the following (with no success whatsoever):
a. I used live CD and ran fsck -f on my partition which came out OK.
b. I used the installation USB and entered graphic rescue mode, reinstalled the GRUB loader and entered the shell, there I got internet access and used the following commands:
  • apt-get update
  • apt-get dist-upgrade

Both didn't do anything (0 installed packages).

Here is a good point to mention that I added the backtrack repositories in order to install remmina (which worked great BTW).

So here I am, with a PC that doesn't boot, I'm not too panicked by it since I can always reinstall (since I didn’t do much on this system anyway) but first I want to try and figure it out. I look at this as an adventure. Hopefully one with a positive ending :roll: .

I would really appreciate with you may guide me through the process of making my PC run Linux again.
Rami
ramiv
 
Posts: 4
Joined: 2018-08-28 11:51

Re: Debian 9 Stretch hungs at boot

Postby None1975 » 2018-08-28 13:41

You should be careful with apt autoremove. You should read what packages will be removed ...I think you should try to look at the apt history. All actions with apt (apt-get) are logged. These files are available in
Code: Select all
 /var/log/apt/

To view the most recent history log, execute:
Code: Select all
less /var/log/apt/history.log

These logs gets rotated (every month I guess), old files will be suffixed with a number and compressed. So to view the next history log, use:
Code: Select all
zless /var/log/apt/history.log.1.gz

To view the logs available:
Code: Select all
ls -la /var/log/apt/

Maybe in this case you can see what was removed when apt autoremove was used and restore the system.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 627
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Debian 9 Stretch hungs at boot

Postby ramiv » 2018-08-28 14:51

That was most definitaly a good advice.

I'll explain what I did for future users who crash their system by accident. I would appreciate corrections or other ways to do the same so I can learn

I entered the installation USB and chose advanced options -> Rescue Mode.

Then I ran through the pages and chose the installation partition as root partition (/dev/sda4 in my case). Then I started the shell.

At the shell I ran the following in order to start connectivity
Code: Select all
dhclient


Then, I entered the log folder
Code: Select all
cd /var/log/apt/


There I opened the history.log file using VI which I like to work with. It is recommended to use the :set nowrap in order to view all of the actions. Unfortunately I edited this file by mistake instead of saving as and therefore I cannot upload that version I would recommend you saving any log files in a new name before playing with them.

What I did was to remove all the lines except the autoremove line. Since it was my last action it was simply the following: go one line above and do $dgg.

After trail and error I found I need to remove the parenthesis at the files and therefore I did in VI the following to remove all parenthesis and their content:
Code: Select all
:%s/(\S\+)//g


now after my new file has only the package names I can use it as an input to apt-get, probably since I use xargs I need to supply it with the -y flag.

Code: Select all
cat apt-test | xargs apt-get -y


I saved the removed packages file to other USB stick for the future and I add it here for you.

That was very interesting experience. My only note is that apt autoremove very dangerous If I had no spare laptop for search for help I would most probably lose my nerves.

I would appreciate your take on this.

Thanks for the help,
Rami

here is apt-test:
Code: Select all
fonts-linuxlibertine:amd64  ca-certificates-java:amd64  libusbredirparser1:amd64  libreoffice-wiki-publisher:amd64  vlc-bin:amd64  libreoffice-style-breeze:amd64  libfreerdp-codec1.1:amd64  libkf5gapi-data:amd64  libreoffice-math:amd64  libkf5kontactinterface5:amd64  libgcj17:amd64  libkf5krosscore5:amd64  libkf5ksieve5:amd64  default-jre-headless:amd64  libkf5akonadicore-bin:amd64  libreoffice-script-provider-js:amd64  libhsqldb1.8.0-java:amd64  libteamdctl0:amd64  libwinpr-environment0.1:amd64  default-jre:amd64  libreoffice-report-builder-bin:amd64  liblangtag-common:amd64  libperl4-corelibs-perl:amd64  libservlet3.1-java:amd64  kdepim-runtime:amd64  libkf5grantleetheme5:amd64  akonadi-server:amd64  libkf5gravatar5:amd64  gnome-accessibility-themes:amd64  fonts-font-awesome:amd64  accountwizard:amd64  libreoffice-sdbc-postgresql:amd64  libkf5calendarsupport5:amd64  libpentaho-reporting-flow-engine-java:amd64  libsac-java-gcj:amd64  libbcprov-java:amd64  mobile-broadband-provider-info:amd64  libformula-java:amd64  coinor-libcoinmp1v5:amd64  libexttextcat-data:amd64  libkf5libkdepim-data:amd64  libwinpr-library0.1:amd64  kdepim-addons:amd64  librevenge-0.0-0:amd64  libwinpr-rpc0.1:amd64  openjdk-8-jre:amd64  vlc-plugin-samba:amd64  libwinpr-synch0.1:amd64  libflac++6v5:amd64  libkf5akonadisearchdebug5:amd64  libkf5kmanagesieve5:amd64  libreoffice-gtk2:amd64  python-mutagen:amd64  libfreerdp-locale1.1:amd64  libatk-wrapper-java:amd64  libreoffice-java-common:amd64  vlc-plugin-qt:amd64  libehcache-java:amd64  libfreerdp-gdi1.1:amd64  libkf5akonadisearch-data:amd64  cdparanoia:amd64  libkf5calendarutils5:amd64  libcmis-0.5-5v5:amd64  libclucene-contribs1v5:amd64  libkf5gapicontacts5:amd64  spice-client-glib-usb-acl-helper:amd64  xsane:amd64  ant:amd64  libreoffice-base:amd64  hyphen-en-us:amd64  libreoffice-core:amd64  libpixie-java:amd64  libfreerdp-crypto1.1:amd64  libkf5calendarcore5:amd64  lp-solve:amd64  libcommons-collections3-java:amd64  libfonts-java:amd64  mariadb-common:amd64  python-musicbrainzngs:amd64  growisofs:amd64  libdom4j-java:amd64  libwinpr-handle0.1:amd64  libcommons-logging-java:amd64  libjaxen-java:amd64  gir1.2-keybinder-3.0:amd64  libexttextcat-2.0-0:amd64  libkf5gapicore5:amd64  iputils-arping:amd64  libkf5akonadimime5:amd64  vlc-plugin-skins2:amd64  liblangtag1:amd64  python-utidylib:amd64  libwpd-0.10-10:amd64  libwinpr-registry0.1:amd64  libitext-java:amd64  vlc-plugin-visualization:amd64  libkf5ksieveui5:amd64  vlc-l10n:amd64  default-mysql-server-core:amd64  lightdm-gtk-greeter:amd64  libxmlbeans-java:amd64  libk3b6:amd64  icedtea-netx-common:amd64  libkf5messagecomposer5:amd64  libkf5grantleetheme-plugins:amd64  libkcddb4:amd64  libxml-commons-external-java:amd64  dnsmasq-base:amd64  python3-brlapi:amd64  icedtea-8-plugin:amd64  libkcompactdisc4:amd64  gnome-orca:amd64  libeot0:amd64  libwinpr-interlocked0.1:amd64  mariadb-server-core-10.1:amd64  libwinpr-crt0.1:amd64  gnome-themes-standard:amd64  libreoffice-kde:amd64  libgtksourceview-3.0-common:amd64  libkf5kdepimdbusinterfaces5:amd64  python3-pyatspi:amd64  libbrlapi0.6:amd64  vlc-plugin-notify:amd64  python3-louis:amd64  libaio1:amd64  libbase-java:amd64  libjcommon-java:amd64  akonadi-backend-mysql:amd64  xbrlapi:amd64  coinor-libcoinutils3v5:amd64  libkf5kdgantt2-5:amd64  libusbredirhost1:amd64  libwinpr-sysinfo0.1:amd64  libwps-0.4-4:amd64  libnm0:amd64  default-java-plugin:amd64  libkf5libkdepim-plugins:amd64  libkf5contacts-data:amd64  network-manager-gnome:amd64  k3b:amd64  libkf5incidenceeditor-bin:amd64  libkf5akonadisearchpim5:amd64  libmusicbrainz5cc2v5:amd64  python-pyinotify:amd64  dvd+rw-tools:amd64  libreoffice-librelogo:amd64  gnome-themes-standard-data:amd64  kdepim-themeeditors:amd64  network-manager:amd64  libpq5:amd64  libkf5akonadisearchcore5:amd64  libkf5akonadisearch-plugins:amd64  python3-uno:amd64  libapache-pom-java:amd64  libatk-adaptor:amd64  libkf5ksieve-data:amd64  libphodav-2.0-common:amd64  libgpod4:amd64  libkf5gpgmepp-pthread5:amd64  libk3b6-extracodecs:amd64  libwinpr-file0.1:amd64  quodlibet:amd64  libsaxonhe-java:amd64  icedtea-netx:amd64  libbcpkix-java:amd64  libfreerdp-common1.1.0:amd64  libboost-iostreams1.62.0:amd64  libvisio-0.1-1:amd64  libatk-wrapper-java-jni:amd64  libwinpr-sspi0.1:amd64  libreoffice-script-provider-python:amd64  libkf5akonadisearchxapian5:amd64  python3-xdg:amd64  libreoffice-style-galaxy:amd64  libndp0:amd64  libreoffice-base-core:amd64  libxml-commons-resolver1.1-java:amd64  fonts-crosextra-carlito:amd64  libwpg-0.3-3:amd64  libxerces-c3.1:amd64  libreoffice-ogltrans:amd64  libkf5eventviews5:amd64  k3b-data:amd64  evince-gtk:amd64  libkf5gapitasks5:amd64  kross:amd64  libreoffice-impress:amd64  libkf5contacts5:amd64  python3-speechd:amd64  libkf5messageviewer5:amd64  gir1.2-wnck-3.0:amd64  libkf5pimcommon5:amd64  libcommons-parent-java:amd64  libkf5gapicalendar5:amd64  libkf5akonadisearch-bin:amd64  default-mysql-client-core:amd64  libkf5mailcommon-plugins:amd64  libxml-java:amd64  libodfgen-0.1-1:amd64  fonts-sil-gentium-basic:amd64  libgvnc-1.0-0:amd64  liborcus-0.11-0:amd64  gir1.2-gtksource-3.0:amd64  libkf5templateparser5:amd64  libkf5imap5:amd64  sphinx-rtd-theme-common:amd64  libloader-java:amd64  libfreerdp-core1.1:amd64  libkf5kaddressbookgrantlee5:amd64  coinor-libcbc3:amd64  kf5-kdepimlibs-kio-plugins:amd64  libkf5pimtextedit5:amd64  libneon27-gnutls:amd64  libgpod-common:amd64  libcacard0:amd64  libwinpr-utils0.1:amd64  librepository-java:amd64  kaddressbook:amd64  libmail-java:amd64  libkf5eventviews-data:amd64  libsac-java:amd64  libkf5akonadicalendar5:amd64  libkf5ldap5:amd64  libkf5incidenceeditor5:amd64  libbcmail-java:amd64  ure:amd64  libserializer-java:amd64  libwinpr-dsparse0.1:amd64  libreoffice-sdbc-hsqldb:amd64  libreoffice-writer:amd64  vlc:amd64  gcj-6-jre-lib:amd64  libgltf-0.0-0v5:amd64  kde-config-mailtransport:amd64  kmail:amd64  libreoffice-common:amd64  libkf5akonadicontact5:amd64  liblayout-java:amd64  libjdom1-java:amd64  libnma0:amd64  fonts-crosextra-caladea:amd64  libwinpr-input0.1:amd64  libcommons-codec-java:amd64  libkf5akonadiprivate5:amd64  libreoffice-script-provider-bsh:amd64  libkf5tnef5:amd64  libkf5akonadiwidgets5:amd64  libxerces2-java:amd64  libkf5identitymanagement5:amd64  librelaxng-datatype-java:amd64  gir1.2-gst-plugins-base-1.0:amd64  libspice-client-glib-2.0-8:amd64  libkolab1:amd64  coinor-libcgl1:amd64  libmsv-java:amd64  cdrdao:amd64  libkf5qgpgme5:amd64  libkf5libkleo5:amd64  libfreerdp-utils1.1:amd64  libwinpr-heap0.1:amd64  libwnck-3-0:amd64  kf5-kdepim-apps-libs-data:amd64  libkf5webkit5:amd64  libreadline5:amd64  libisorelax-java:amd64  libgcj-bc:amd64  libjemalloc1:amd64  libmwaw-0.3-3:amd64  coinor-libosi1v5:amd64  python-libxml2:amd64  python-feedparser:amd64  libgtksourceview-3.0-1:amd64  libxpp3-java:amd64  libboost-filesystem1.62.0:amd64  libfreerdp-cache1.1:amd64  libwinpr-path0.1:amd64  mariadb-client-core-10.1:amd64  kf5-messagelib-data:amd64  libiso9660-8:amd64  libreoffice-nlpsolver:amd64  libapache-poi-java:amd64  vlc-plugin-video-splitter:amd64  openjdk-8-jre-headless:amd64  libqt5xmlpatterns5:amd64  gstreamer1.0-libav:amd64  libreoffice:amd64  libkf5calendarsupport-data:amd64  fonts-opensymbol:amd64  libpagemaker-0.0-0:amd64  mythes-en-us:amd64  xsane-common:amd64  libkf5libkdepim5:amd64  libkf5akonadicore5:amd64  libwnck-3-common:amd64  libphodav-2.0-0:amd64  libkf5sendlater5:amd64  coinor-libclp1:amd64  libreoffice-pdfimport:amd64  libsgutils2-2:amd64  libreoffice-report-builder:amd64  libetonyek-0.1-1:amd64  dns-root-data:amd64  uno-libs3:amd64  libxpp2-java:amd64  gir1.2-gstreamer-1.0:amd64  libboost-date-time1.62.0:amd64  libreoffice-style-tango:amd64  libkf5mailtransport-data:amd64  fonts-sil-gentium:amd64  kdepimlibs-data:amd64  libflute-java:amd64  libkf5messagecore5:amd64  libkf5mailcommon5:amd64  libboost-thread1.62.0:amd64  libkf5pimcommon-plugins:amd64  libwinpr-thread0.1:amd64  libxom-java:amd64  libkf5kontactinterface-data:amd64  libreoffice-help-en-us:amd64  libjs-modernizr:amd64  libkf5krossui5:amd64  libkf5mailtransport5:amd64  vcdimager:amd64  exfalso:amd64  libboost-system1.62.0:amd64  libgcj-common:amd64  libkf5mailimporter5:amd64  libmspub-0.1-1:amd64  libreoffice-calc:amd64  ktnef:amd64  libkf5mime5:amd64  libcdr-0.1-1:amd64  libjs-sphinxdoc:amd64  libmythes-1.2-0:amd64  ant-optional:amd64  libkf5akonadinotes5:amd64  libvcdinfo0:amd64  libkolabxml1v5:amd64  libbsh-java:amd64  java-common:amd64  fonts-freefont-ttf:amd64  libkf5messagelist5:amd64  libspice-client-gtk-3.0-5:amd64  libe-book-0.1-1:amd64  lightdm:amd64  libabw-0.1-1:amd64  libgtk-vnc-2.0-0:amd64  libwinpr-pool0.1:amd64  libkf5akonadiagentbase5:amd64  liblog4j1.2-java:amd64  libreoffice-base-drivers:amd64  libwinpr-crypto0.1:amd64  libkf5alarmcalendar5:amd64  libgrantlee-textdocument5:amd64  liblightdm-gobject-1-0:amd64  libreoffice-draw:amd64  libreoffice-avmedia-backend-gstreamer:amd64  libkf5mbox5:amd64  kdepim-doc:amd64  k3b-i18n:amd64  libkf5followupreminder5:amd64  libfreerdp-primitives1.1:amd64  libfreehand-0.1-1:amd64
ramiv
 
Posts: 4
Joined: 2018-08-28 11:51

Re: Debian 9 Stretch hungs at boot

Postby Wheelerof4te » 2018-08-28 20:14

I believe a similar case was posted here recently. Both users had XFCE and KDE installed, but removed KDE after. Then the ran
Code: Select all
apt autoremove
.

900 MB for a fresh Linux installation is much, and that should have been your key note. Also, never blindly remove packages, at least glance over the list apt gives you. You should look for core packages like xorg-server, mesa, etc. If you see them, refuse and figure out the mistake.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: Debian 9 Stretch hungs at boot

Postby stevepusser » 2018-08-28 22:48

When you are talking about a "boot hang", do you mean that it never even got to a text login screen?
If you get to that, I would consider that a successful boot, and just your GUI needs fixin'. I can see where an autoremove would remove the dm package installed by the KDE metapackage, such as sdm, leading to a text login, but if it's hanging before then, that is indeed a puzzle.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9915
Joined: 2009-10-06 05:53

Re: Debian 9 Stretch hungs at boot

Postby ramiv » 2018-08-29 01:35

as it seems it never got to the stage of text login and was stuck at the stage of the picture above. no matter what I pressed I did not get response.
ramiv
 
Posts: 4
Joined: 2018-08-28 11:51

Re: Debian 9 Stretch hungs at boot

Postby debiman » 2018-08-29 06:31

ramiv wrote:I want to thank you for creating and maintaining this website.

we did not create this site, nor are we maintaining it.
we are ordinary guys, just like you.
please keep it in mind.
there's no magic happening here at any time.
User avatar
debiman
 
Posts: 2818
Joined: 2013-03-12 07:18

Re: Debian 9 Stretch hungs at boot

Postby ramiv » 2018-08-29 12:34

debiman wrote:
ramiv wrote:I want to thank you for creating and maintaining this website.

we did not create this site, nor are we maintaining it.
we are ordinary guys, just like you.
please keep it in mind.
there's no magic happening here at any time.


ok, I understand.

anyway, thank you for guiding me in the right direction. I'll continue to learn and maybe help in the future.
ramiv
 
Posts: 4
Joined: 2018-08-28 11:51


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable