Unable to check for updates - Debian 11

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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
 


Chafoin

New Member
Joined
Jan 13, 2022
Messages
28
Reaction score
19
Credits
218
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
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,472
Reaction score
3,178
Credits
32,453
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?
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
910
Reaction score
769
Credits
6,478
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:
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,472
Reaction score
3,178
Credits
32,453
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
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
I don't have permission to save the file with the text editor and no option to put the root password anywhere
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,472
Reaction score
3,178
Credits
32,453
Code:
sudo gedit /etc/apt/sources.list
Then you can edit and save the file.
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,472
Reaction score
3,178
Credits
32,453
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
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
910
Reaction score
769
Credits
6,478
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?
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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?
 

Brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
2,380
Reaction score
1,599
Credits
17,889
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"
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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:

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
341
Reaction score
345
Credits
2,346
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
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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
 
OP
Terminal Velocity

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
154
Reaction score
101
Credits
1,104
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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top