The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 514β€…    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: November 24, 2022    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.

⇧ Using syslog to diagnose a crash Grub wait time 10 seconds after editing to "0" in /etc/default/grub?  β‡©