🔍 See Original Answer on Ask Ubuntu 🔗
Installing programs on persistent live disk
November 18, 2019
Edited: November 18, 2019
November 24, 2022
Copy to clipboard: false
In the copy of the screen are missing the lines preceding:
Do you want to continue? [Y/n] Y Setting up linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ... Setting up initramfs-tools (0.130ubuntu3.9) ...
This leads me to believe you entered
sudo apt upgrade. You can’t do this with a persistent USB.
You can only do:
sudo apt update sudo apt install <package_name>
<package_name> is not a linux kernel package such as
The problem is not based on your encrypted HDD because a Live USB will not see your HDD or any other drives / partitions until they are manually mounted.
Additionally make sure automatic upgrades are turned off in systems settings. From time to time use:
apt list --upgradable
Only select those packages with
sudo apt upgrade <package_name> when they are not related to
linux_header. There may be other packages as well that should not be upgraded.