Foolish use of apt autoremove

If none of the more specific forums is the right place to ask

Foolish use of apt autoremove

Postby kegon5 » 2019-01-09 22:02

Hi,

My Stretch system won't boot anymore... after Grub, the screen goes black, the fsck line shows up as normal then after about the usual 20 seconds of disk activity, the disk light goes off and the system does nothing.

The most likely candidate for this state is recently I did an apt-get upgrade that recommended doing an apt autoremove. I then ran the autoremove without paying close attention to what was being removed. It seemed like a bunch of old kernel files so rather foolishly I went ahead. I can't believe I wasn't more careful.

I have a triple boot system also including Windows 10 and Ubuntu 18.04. Thinking that I could have been running one of those older kernels I booted to Ubuntu and ran grub-install: no change. Then I tried a chroot from Ubuntu to run a grub-install "from Debian" but that didn't solve the issue either.

I guess now that some important package was removed. How to find it and install it ? Or has anyone got some better suggestions ?

Many thanks in advance!
kegon5
 
Posts: 4
Joined: 2019-01-09 21:48

Re: Foolish use of apt autoremove

Postby cronoik » 2019-01-09 22:06

Please post the file /var/log/apt/history.log of your debian.
Have a nice day!
cronoik
 
Posts: 294
Joined: 2015-05-20 21:17

Re: Foolish use of apt autoremove

Postby kegon5 » 2019-01-10 05:38

The last entry:

Code: Select all
Start-Date: 2019-01-06  18:48:03
Commandline: apt autoremove
Requested-By: idiot (1000)
Remove: libnvidia-ptxjitcompiler:amd64 (375.82-1~deb9u1), python-sip:amd64 (4.18.1+dfsg-2), plasma-containments-addons:amd64 (4:4.14.2-1), libdirectfb-dev:amd64 (1.2.10.0-8+deb9u1), python-dbus-dev:amd64 (1.2.4-1), gtk2-engines:amd64 (1:2.20.2-3), libksignalplotter4:amd64 (4:4.11.13-2), linux-headers-4.9.0-5-amd64:amd64 (4.9.65-3+deb9u2), plasma-widget-lancelot:amd64 (4:4.14.2-1), liblensfun0:amd64 (0.2.8-2), gir1.2-soup-2.4:amd64 (2.56.0-2+deb9u2), libavahi-client-dev:amd64 (0.6.32-2), libqt5serialport5:amd64 (5.7.1~20161021-2), libgegl-0.2-0:amd64 (0.2.0-7+b1), libnotify-bin:amd64 (0.7.7-2), kde-window-manager:amd64 (4:5.8.6-1), libibverbs1:amd64 (1.2.1-2), libavahi-common-dev:amd64 (0.6.32-2), libsmokeqtdbus4-3:amd64 (4:4.14.3-1.1), libplasmagenericshell4:amd64 (4:4.11.13-2), vlc-plugin-qt:amd64 (3.0.3-1-0+deb9u1), libgetopt-java:amd64 (1.0.14+dfsg-3), libespeak1:amd64 (1.48.04+dfsg-5+b1), espeak-data:amd64 (1.48.04+dfsg-5+b1), python-imaging:amd64 (4.0.0-4), freeglut3:amd64 (2.8.1-3), ttf-dejavu-core:amd64 (2.37-1), linux-headers-4.9.0-6-amd64:amd64 (4.9.88-1+deb9u1), libcups2-dev:amd64 (2.2.1-8+deb9u2), python-gi:amd64 (3.22.0-2), libprocessui4a:amd64 (4:4.11.13-2), libcupsimage2-dev:amd64 (2.2.1-8+deb9u2), python-renderpm:amd64 (3.3.0-2), marble-plugins:amd64 (4:16.08.3-1), python-dbus:amd64 (1.2.4-1+b1), vlc-plugin-skins2:amd64 (3.0.3-1-0+deb9u1), htdig:amd64 (1:3.2.0b6-16+b1), python-kde4:amd64 (4:4.14.3-2+deb9u1), vlc-plugin-visualization:amd64 (3.0.3-1-0+deb9u1), libksieve4:amd64 (4:4.14.1-1+deb8u1), linux-image-4.9.0-4-amd64:amd64 (4.9.65-3+deb9u1), vlc-l10n:amd64 (3.0.3-1-0+deb9u1), libqtlocation1:amd64 (1.2.0-3+b1), vlc-nox:amd64 (3.0.3-1-0+deb9u1), kde-style-oxygen:amd64 (4:5.8.4-1), plasma-widget-folderview:amd64 (4:4.14.2-1), libstreams0:amd64 (0.7.8-1.2+b2), libpodofo0.9.0:amd64 (0.9.0-1.2+b2), libuuid-perl:amd64 (0.27-1), libkateinterfaces4:amd64 (4:4.14.2-2), libservlet2.5-java:amd64 (6.0.45+dfsg-1~deb8u1), vlc-plugin-notify:amd64 (3.0.3-1-0+deb9u1), kde-style-oxygen-qt4:amd64 (4:5.8.4-1), libenca-dev:amd64 (1.19-1+b1), libwebkitgtk-dev:amd64 (2.4.11-3), linux-headers-4.9.0-4-common:amd64 (4.9.65-3+deb9u1), python-notify:amd64 (0.1.1-4), libkscreensaver5:amd64 (4:4.11.13-2), libestools2.1:amd64 (1:2.1~release-8), libgraphicsmagick++3:amd64 (1.3.20-3+deb8u2), linux-image-4.9.0-5-amd64:amd64 (4.9.65-3+deb9u2), libaudio-dev:amd64 (1.9.4-5+b1), ttf-dejavu-extra:amd64 (2.37-1), kdm:amd64 (4:4.11.13-2), libcupsfilters-dev:amd64 (1.11.6-3), libpth20:amd64 (2.0.7-20+b2), libpostproc52:amd64 (6:0.git20120821-4), libakonadi-kabc4:amd64 (4:4.14.10-7+b2), python-pexpect:amd64 (4.2.1-1), libvncserver0:amd64 (0.9.9+dfsg2-6.1+deb8u2), freespacenotifier:amd64 (4:4.11.13-2), libxmu-dev:amd64 (2:1.1.2-2), libwebkitgtk-1.0-0:amd64 (2.4.11-3), libopenraw1:amd64 (0.0.9-3.5+b2), plasma-scriptengine-webkit:amd64 (4:4.11.13-2), plasma-scriptengine-python:amd64 (4:4.11.13-2), libmarblewidget-qt5-25:amd64 (4:16.08.3-1), python-ptyprocess:amd64 (0.5.1-1), linux-headers-4.9.0-5-common:amd64 (4.9.65-3+deb9u2), kdeplasma-addons:amd64 (4:4.14.2-1), python-soappy:amd64 (0.12.22-1), libgnome2-0:amd64 (2.32.1-5+b1), libsmokeqtopengl4-3:amd64 (4:4.14.3-1.1), xscreensaver-screensaver-bsod:amd64 (5.36-1), libsmokeqtxml4-3:amd64 (4:4.14.3-1.1), ruby-qt4:amd64 (4:4.14.3-1+b3), libgif4:amd64 (4.1.6-11+deb8u1), libsoundtouch0:amd64 (1.8.0-1), linux-image-3.2.0-4-amd64:amd64 (3.2.68-1+deb7u5), python-reportlab-accel:amd64 (3.3.0-2), libxmu-headers:amd64 (2:1.1.2-2), vlc:amd64 (3.0.3-1-0+deb9u1), kde-wallpapers:amd64 (4:15.04.2-1), linux-image-4.9.0-6-amd64:amd64 (4.9.88-1+deb9u1), ksnapshot:amd64 (4:16.08.3-2), liblircclient0:amd64 (0.9.4c-9), libssl-dev:amd64 (1.1.0j-1~deb9u1), libgraphicsmagick3:amd64 (1.3.20-3+deb8u2), libmng-dev:amd64 (1.0.10+dfsg-3.1+b5), python-qt4-dbus:amd64 (4.11.4+dfsg-2+b1), libwebrtc-audio-processing-0:amd64 (0.1-3), libjavascriptcoregtk-1.0-dev:amd64 (2.4.11-3), libsoup2.4-dev:amd64 (2.56.0-2+deb9u2), python-libxml2:amd64 (2.9.4+dfsg1-2.2+deb9u2), libuninameslist0:amd64 (0.3.20130501-3), vlc-plugin-video-splitter:amd64 (3.0.3-1-0+deb9u1), libenca0:amd64 (1.19-1+b1), libmsn0.3:amd64 (4.2-2), libsmokeqtsvg4-3:amd64 (4:4.14.3-1.1), kde-wallpapers-default:amd64 (4:15.04.2-1), linux-headers-4.9.0-4-amd64:amd64 (4.9.65-3+deb9u1), python-reportlab:amd64 (3.3.0-2), ttf-dejavu:amd64 (2.37-1), imagemagick-common:amd64 (8:6.9.7.4+dfsg-11+deb9u6), libakonadi-kcal4:amd64 (4:4.14.10-7+b2), xfonts-mathml:amd64 (6), libjsoncpp0:amd64 (0.6.0~rc2-3.1), kde-workspace-kgreet-plugins:amd64 (4:4.11.13-2), app-install-data:amd64 (2012.06.16.1), libqt5positioning5:amd64 (5.7.1-1), python-glade2:amd64 (2.24.0-5.1), lockfile-progs:amd64 (0.1.17+b1), liblensfun-data:amd64 (0.2.8-2), plasma-scriptengine-superkaramba:amd64 (4:4.14.2-1), libkephal4abi1:amd64 (4:4.11.13-2), linux-headers-4.9.0-6-common:amd64 (4.9.88-1+deb9u1), khelpcenter4:amd64 (4:16.08.3-1), python-cups:amd64 (1.9.73-1), plasma-widget-networkmanagement:amd64 (0.9.3.4-2), libgnu-regexp-java:amd64 (1.1.4-4), fonts-freefont-ttf:amd64 (20120503-6), libsmokeqtsql4-3:amd64 (4:4.14.3-1.1), libqtruby4shared2:amd64 (4:4.14.3-1+b3), libdirectfb-extra:amd64 (1.2.10.0-8+deb9u1), libjavascriptcoregtk-1.0-0:amd64 (2.4.11-3), python-qt4:amd64 (4.11.4+dfsg-2+b1), libzthread-2.3-2:amd64 (2.3.2-7.2)
End-Date: 2019-01-06  18:52:51


I use KDE as my main DE/window manager.
kegon5
 
Posts: 4
Joined: 2019-01-09 21:48

Re: Foolish use of apt autoremove

Postby Head_on_a_Stick » 2019-01-10 06:05

Brute force approach:
Code: Select all
# apt install task-kde-desktop

To get to a prompt try pressing "e" with the Debian menu entry highlighted in GRUB then add systemd.unit=multi-user.target to the end of the line that starts with "linux" then press <Ctrl>+x to boot the modified entry.
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8610
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Foolish use of apt autoremove

Postby bw123 » 2019-01-10 06:08

From your log, it looks like a mixed system. kdm and plasma-containments-addons are not in stretch. You can try and reinstall a display manager, but why go to a lot of trouble for a frankendbian?

The current plasma dm in stretch is sddm I think. I use lightdm, it's ok with kde.
User avatar
bw123
 
Posts: 3685
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Foolish use of apt autoremove

Postby kegon5 » 2019-01-10 06:11

@bw123

I didn't know that. I prefer KDE/kdm and that's what I've been using for as long as I remember.
kegon5
 
Posts: 4
Joined: 2019-01-09 21:48

Re: Foolish use of apt autoremove

Postby kegon5 » 2019-01-10 06:17

Head_on_a_Stick wrote:To get to a prompt try pressing "e" with the Debian menu entry highlighted in GRUB then add systemd.unit=multi-user.target to the end of the line that starts with "linux" then press <Ctrl>+x to boot the modified entry.


Tried that but didn't work (same screen hangs showing /dev/sda5: clean, NNN/MMM files, KKK/LLL blocks, as before)
kegon5
 
Posts: 4
Joined: 2019-01-09 21:48

Re: Foolish use of apt autoremove

Postby bw123 » 2019-01-10 06:32

You might have to wait a long time for multi-user, because of network or something else. Try emergency, or single/maintenance mode. Look it up first online so you get the idea.

Maybe if you can get in, get to a prompt, get the network up, fix your sources.list and full or dist-upgrade it will boot but why bother? It'll alwasy be a frankendebian, save the data and reinstall.
User avatar
bw123
 
Posts: 3685
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Foolish use of apt autoremove

Postby Debian_purist » 2019-01-10 13:01

bw123 wrote: frankendbian


:P
User avatar
Debian_purist
 
Posts: 36
Joined: 2017-07-15 14:45

Re: Foolish use of apt autoremove

Postby Debian_purist » 2019-01-10 13:02

OP

try to save you system :!: :arrow: :idea:
User avatar
Debian_purist
 
Posts: 36
Joined: 2017-07-15 14:45


Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable