• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

I installed Debian Live on my laptop. It worked well but when I try to update

DanneA

New Member
Joined
Nov 26, 2022
Messages
7
Reaction score
2
Credits
72
I installed Debian GNU Linux 11, the "Live-installer" type on my laptop. That was easy and worked well but when I try to update and upgrade I get following message:

...
(many more lines with Get: and Ign:
...
Get:3 file:/run/live/medium bullseye/main all Packages
Ign:3 file:/run/live/medium bullseye/main all Packages
Get:4 file:/run/live/medium bullseye/main amd64 Packages
Err:4 file:/run/live/medium bullseye/main amd64 Packages
File not found - /run/live/medium/dists/bullseye/main/binary-amd64/Packages (2: No such file or direc
tory)
Get:5 file:/run/live/medium bullseye/main Translation-sv
Ign:5 file:/run/live/medium bullseye/main Translation-sv
Reading package lists... Done
E: Failed to fetch file:/run/live/medium/dists/bullseye/main/binary-amd64/Packages File not found - /r
un/live/medium/dists/bullseye/main/binary-amd64/Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.


Where do I find the problem? I look in the directories that it points to but just get confused.
Help!
 


Welcome to the forums.

How do you "install" a live session? Did you try to run "apt" after booting from the disk containing the live ISO? It's not meant to be "installed" that way, you have to use the Debian Installer if you want to install Debian somewhere.

You have to give the following command first of all when using "apt":
sudo apt update

Of course after properly installing the distro this should work. Like I said, if you really want to install it you have to go into a program quite different from the GUI of a desktop environment such as GNOME.
 
The answer may lie in your sources list. It may be looking for the installation medium which has been removed.

What does your sources list say? Can you Copy and Paste the result here?

Use this command: cat /etc/apt/sources.list
 
The OP is trying to run "apt" from a live session.

The directories start with /run/live/medium which are supposed to be where the information about repositories are located. It's impossible to have that combination for Debian or Ubuntu or descendant which is properly installed. I've been wrong before, however.

It was about 1-1/2 weeks ago I last installed "Bullseye" without non-free firmware ISO from 29-April-2023, using the Debian Installer. It didn't come with a live session with any GUI. I had successfully installed it with XFCE, GNOME "Flashback" (didn't keep it) and KDE in that order. Because it had no Wifi option I turned down its requests to do anything online. After the system was installed however I copied the sources.list from Spiral Linux also based on "Bullseye".

It's possible the repository information is being changed because v12 "Bookworm" is near the date it becomes "stable" bumping "Bullseye" to become "oldstable".

The sources.list file on my Spiral Linux KDE installation looks like this. It should be near-identical on ordinary Debian:
Code:
deb http://deb.debian.org/debian/ bullseye main contrib non-free
#deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
deb http://security.debian.org/ bullseye-security main contrib non-free
#deb-src http://security.debian.org/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
#deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free  #Debian Bullseye Backports
 
I installed Debian GNU Linux 11, the "Live-installer" type on my laptop. That was easy and worked well but when I try to update and upgrade I get following message:
As mentioned, updating depends on the entries in the /etc/apt/sources.list file. The example in post #4 is sound. Debian has very extensive documentation such as: https://www.debian.org/releases/bullseye/amd64/, for bullseye. Though it's often a lot to take in, it will provide the "canonical" answers to debian queries.

It's probably worth noting that the bullseye release is shortly to be upgraded to the bookworm release which will need to be reflected in a change to the /etc/apt/sources.list file in which "bullseye" will need to be replaced by "bookworm". How this upgrade should be done will be outlined in release notes which should be read to get it right.
 
Last edited:
You can check the sources.list in Debian 11 by executing the following command:
Code:
cat /etc/apt/sources.list

 
I scrached my head a lot and then I downloaded a new ISO-version, not a live one.
The live Debian where for my other laptop with Windows on and I was lazy and thought
it worked to just install it. It did not, now I know!
Thanks for all help...
 
So did you do a proper install, not copying over a live iso? The live version has an install option that would do a proper install.

Good luck,
--glenn
 

Members online


Top