Views:
604β
Votes: 0β
β
Solution
Tags:
18.04
live-usb
persistence
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1189665
Title:
Installing programs on persistent live disk
ID:
/2019/11/18/Installing-programs-on-persistent-live-disk
Created:
November 18, 2019
Edited: November 18, 2019
Upload:
December 22, 2024
Layout: post
TOC:
false
Navigation: false
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>
Where <package_name>
is not a linux kernel package such as linux_image
or linux_header
.
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 initramfs
, grub
, linux_image
or linux_header
. There may be other packages as well that should not be upgraded.