apt-get dist-upgrade and continue to get the below error when attempting to run anything else. Included the current packages below as well. Any help is appreciated.
# apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-4.4.0-159-generic (4.4.0-159.187) ... Processing triggers for linux-image-4.4.0-159-generic (4.4.0-159.187) ... /etc/kernel/postinst.d/initramfs-tools: /etc/kernel/postinst.d/initramfs-tools: 33: /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 127 dpkg: error processing package linux-image-4.4.0-159-generic (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: linux-image-4.4.0-159-generic E: Sub-process /usr/bin/dpkg returned an error code (1) # sudo dpkg --get-selections | grep linux libselinux1:amd64 install linux-base install linux-firmware install linux-generic install linux-headers-3.13.0-24 install linux-headers-3.13.0-24-generic install linux-headers-4.4.0-159 install linux-headers-4.4.0-159-generic install linux-headers-generic install linux-image-3.13.0-24-generic deinstall linux-image-4.4.0-159-generic install linux-image-extra-3.13.0-24-generic deinstall linux-image-generic install linux-libc-dev:amd64 install linux-modules-4.4.0-159-generic install linux-modules-extra-4.4.0-159-generic install util-linux install
When running apt, either upgrade, dist-upgrade or autoremove, I get an error concerning friendly-recovery and grub. I’ve been looking around but can’t find a solution. It seems to update / install other packages fine.
I’ve included the command, output and the relevant files from what I understand. If any more information can help please let me know.
Hope someone can help!
Command and output:
> sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up friendly-recovery (0.2.38ubuntu1.1) ... Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/50-curtin-settings.cfg' Generating grub configuration file ... Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing Syntax errors are detected in generated GRUB config file. Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub/grub.cfg.new file attached. dpkg: error processing package friendly-recovery (--configure): installed friendly-recovery package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: friendly-recovery E: Sub-process /usr/bin/dpkg returned an error code (1)
contents of /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="maybe-ubiquity" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
contents of /etc/default/grub.d/50-curtin-settings.cfg
GRUB_CMDLINE_LINUX_DEFAULT="maybe-ubiquity" # disable grub os prober that might find other OS installs. GRUB_DISABLE_OS_PROBER=true GRUB_TERMINAL=console
My current system version is 18.04 LTS, kernel 4.15.0-45-generic. Due to CVE-2019-11477, I want to update the kernel to the fixed version linux-image-4.15.0-52-generic.
sudo apt dist-upgrade and nothing happened. But when I use
apt search linux-image-4.15.0-52, this kernel exists in the official repo. Then I installed it manually, When will dist-upgrade upgrade the kernel?
I just recently installed Kali Linux 2019.2 thru VMWare Workstation 15 on Windows 10 a day ago and I want to install OpenVas. However, it seems that I had to install it first and an error showed:
Unable to locate package openvas
So, I searched and found out that there might be something wrong with my sources.list. So I copied the commands below and pasted it on sources.list.
deb http://http.kali.org/kali kali-rolling main contrib non-free # For source package access, uncomment the following line # deb-src http://http.kali.org/kali kali-rolling main contrib non-free deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # For source package access, uncomment the following line # deb-src http://http.kali.org/kali sana main non-free contrib # deb-src http://security.kali.org/kali-security sana/updates main contrib non-free deb http://old.kali.org/kali moto main non-free contrib # For source package access, uncomment the following line # deb-src http://old.kali.org/kali moto main non-free contrib
After that, I did the update and upgrade which installed the missing files, I guess?
sudo apt-get update sudo apt-get dist-upgrade
My question is: Is it normal if it is already taking more than a day to dist-upgrade? It’s only taking 28.2 Kb/s. Is there a way to speed up the upgrade process or did I miss something else where?
I’m just a beginner, hoping you could go easy on me. Thanks in advance.
For a while now, I’ve had NVIDIA 418.56, CUDA 10.1, and a 4.4.0-148-generic kernel.
I might have caused issues when I ran dist-upgrade or similar recently; after decrypting the drive, it gets stuck there. This is not an issue with the decryption, as I’ve also tried recovery mode and logging into the root shell, and I could work with the shell right after it asks for the decryption credentials.
startx from another tty did not work, so I thought that I needed to reinstall the driver. I upgraded it to 418.67 and rebooted (confirmed by nvidia-smi), but the GUI still would not boot.
The Xorg logs are shown here. An error is seen:
(EE) systemd-logind: failed to get session: PID 1214 does not belong to any known session
Where do I go from here? I’ve searched about the topic, and the posts were mostly from a few years back, involving Arch Linux and Bumblebee.
I want to ensure something. I’m running a database full of information and manually set configuration. Now I’m trying to upgrade my Ubuntu from 16.04 to 18.04. I did “apt-get update” and “apt-get upgrade” however I’m not sure what apt-get dist-upgrade does? will it erase or overwrite any previously defined configuration?
i used to adjust brightness on a macbook-air using f1 and f2 keys for years, and that stopped working after a 19.04 dist-upgrade
what should i try for fixing this issue (like which packages should i have installed, like pommed – this one is actually installed, i can adjust keyboard backlight with f5 and f6 keys, but not the display backlight with f1 and f2, quite weird issue…) or perhaps, what should i verify and report here (those stuff like terminal command line logs and alike)
thanks in advance
sudo apt update && sudo apt dist-upgrade
Hit:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease Hit:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
Reading package lists… Done Building dependency tree
Reading state information… Done 7 packages can be upgraded. Run ‘apt list –upgradable’ to see them. Reading package lists… Done Building dependency tree
Reading state information… Done Calculating upgrade… Done’
The following packages have been kept back:
xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-void xserver-xorg-video-dummy
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded
when i open:
the following comes up:
You don't have the required privileges to perform this action.
i press Ok. this comes up:
the software on this computer is up to date. However, Ubuntu 18.04.2 LTS is now available (you have 16.04)
i press Upgrade. Nothing happenes.
lsb-release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial
any tips? :/
I was updating my Ubuntu 16.04 server with
apt-get update and
apt-get upgrade and then I restarted the server with
sudo reboot. Since then, I can’t login via putty. I connected via console that my hosting provider gives and running the command
sudo service ssh status i got the following :
Any advise how can I handle this?