Unable to check for updates - Debian 11

Terminal Velocity

Well-Known Member
Joined
Oct 13, 2021
Messages
527
Reaction score
379
Credits
3,733
The OS is not up to date, I just installed it and I have downloaded the iso file several months back. When I check for updates it say this:
Screenshot from 2022-01-25 16-47-36.png
 


Is this Gnome Software ? It is good but sometimes it can't do specific tasks.

Try :

Bash:
sudo apt update && sudo apt upgrade

You can try to google the error message that you screenshoted

Peace
 
Looks more like it's trying to download the updates from the cdrom:/// location which is not available. What does your /etc/apt/sources.list look like?
 
Disable the cdrom as an update path in your /apt/sources.list file. Then try again.
Your sources.list file should look similar to this
Code:
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/debian-security bullseye-security main contrib
deb-src http://security.debian.org/debian-security bullseye-security main contrib
deb http://deb.debian.org/debian/ bullseye-updates main contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib
and not include a cdrom line.

So if it has this line


Code:
 deb cdrom:Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main
Delete it or place a # in front of it so it looks like this:
Code:
#deb cdrom:[Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main
Save the file and try the update again.
 
Last edited:
Looks more like it's trying to download the updates from the cdrom:/// location which is not available. What does your /etc/apt/sources.list look like?
Code:
# deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye-security main
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/debian-security bullseye-security main

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ bullseye-updates main
# deb-src http://deb.debian.org/debian/ bullseye-updates main
 
Try changing it to this.
Code:
# deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

#deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye-security main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security bullseye-security main

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ bullseye-updates main
deb-src http://deb.debian.org/debian/ bullseye-updates main
Then run.
Code:
sudo apt update && sudo apt upgrade
 
I don't have permission to save the file with the text editor and no option to put the root password anywhere
 
Code:
sudo gedit /etc/apt/sources.list
Then you can edit and save the file.
 
Code:
sudo gedit /etc/apt/sources.list
Then you can edit and save the file.
This is what happens:

Code:
~# sudo gedit /etc/apt/sources.list
Unable to init server: Could not connect: Connection refused

(gedit:2099): Gtk-WARNING **: ________: cannot open display:

And still can't edit the file
 
Seems like your are connected to a system without GUI, try this.
1. sudo nano /etc/apt/sources.list
2. Edit the file.
3. Press the following to save: ctrl+x
4. When asked if you want to save press: y
 
I don't have permission to save the file with the text editor and no option to put the root password anywhere
You have to have root privileges to save that file. See what F33dm3bits wrote about using nano editor..
which desktop are you using by the way?
 
which desktop are you using by the way?
cinnamon

I manage to edit the file and popped one update, look:

Screenshot from 2022-01-25 18-51-54.png


It even ask authentication to update... in my other Debian did not ask password to update.
should I do this update?
 
It is not uncommon for some distributions to ask for the root password, all it is saying to you is "are you sure you want to do this and do you have the authority to do this"
 
I did the update and now when I check for updates there's another problem:
Screenshot from 2022-01-25 19-17-37.png

Now my list looks like this:
Code:
# deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

#deb cdrom:[Official Debian GNU/Linux Live 11.1.0 cinnamon 2021-10-09T12:29]/ bullseye main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye-security main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security bullseye-security main

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ bullseye-updates main
deb-src http://deb.debian.org/debian/ bullseye-updates main
 
Last edited:
You are missing the Main Debian repo and Security:
Code:
# Bullseye https://www.debian.org/releases/bullseye/arm64/release-notes/ch-upgrading.en.html
deb https://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

# Bullseye Security https://www.debian.org/releases/bullseye/arm64/release-notes/ch-information.en.html#security-archive
deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free

Wouldn't hurt to have these as well:
Code:
# Bullseye Updates https://wiki.debian.org/DebianBullseye#FAQ 
# https://wiki.debian.org/StableUpdates All packages from stable-updates will be included in point releases.
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
# deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free

# Bullseye Proposed Updates https://wiki.debian.org/StableProposedUpdates
# Stable-proposed-updates is an apt repository that contains the files that are being prepared for the next Debian/Stable point release.
deb https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free 
# deb-src https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free

# Bullseye Backports  https://backports.debian.org/
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
# deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free
 
This is what my updated working laptop looks like:
Code:
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main

deb http://security.debian.org/debian-security/ bullseye-security main
deb-src http://security.debian.org/debian-security/ bullseye-security main
 
You are missing the Main Debian repo and Security:
Code:
# Bullseye https://www.debian.org/releases/bullseye/arm64/release-notes/ch-upgrading.en.html
deb https://deb.debian.org/debian/ bullseye main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

# Bullseye Security https://www.debian.org/releases/bullseye/arm64/release-notes/ch-information.en.html#security-archive
deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free

Wouldn't hurt to have these as well:
Code:
# Bullseye Updates https://wiki.debian.org/DebianBullseye#FAQ
# https://wiki.debian.org/StableUpdates All packages from stable-updates will be included in point releases.
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
# deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free

# Bullseye Proposed Updates https://wiki.debian.org/StableProposedUpdates
# Stable-proposed-updates is an apt repository that contains the files that are being prepared for the next Debian/Stable point release.
deb https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free

# Bullseye Backports  https://backports.debian.org/
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
# deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
# deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free
If I understand well you suggest to add those two lines?
Code:
deb https://deb.debian.org/debian/ bullseye main contrib non-free

deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
 

Members online


Top