[Solved] [Software] Update failure, debian 12

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
move300
Posts: 3
Joined: 2023-10-05 11:02
Has thanked: 3 times

[Solved] [Software] Update failure, debian 12

#1 Post by move300 »

HI all, i need help with... updating the system, i think.
i tried to use the command

Code: Select all

sudo apt update; sudo apt upgrade


but the i got this:

Code: Select all

Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Ign:2 http://deb.debian.org/debian $codename-backports InRelease               
Hit:3 https://deb.debian.org/debian bookworm InRelease                         
Ign:4 http://ftp.il.debian.org/debian bookworm-security InRelease
Err:5 http://deb.debian.org/debian $codename-backports Release
  404  Not Found [IP: 146.75.122.132 80]
Hit:6 https://deb.debian.org/debian bookworm-updates InRelease
Ign:4 http://ftp.il.debian.org/debian bookworm-security InRelease
Ign:4 http://ftp.il.debian.org/debian bookworm-security InRelease
Err:4 http://ftp.il.debian.org/debian bookworm-security InRelease
  Could not resolve 'ftp.il.debian.org'
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian $codename-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
i dont think its updating any thing...
i tryed to change mirrors but got error doing this.

i looked in wiki , but i find any use from the info there.
Last edited by move300 on 2023-10-05 16:03, edited 1 time in total.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2597
Joined: 2010-06-07 16:59
Has thanked: 52 times
Been thanked: 289 times

Re: [Software] Update failure, debian 12

#2 Post by FreewheelinFrank »

Welcome to the forum!

Please post contents of /et/apt/sources.list.

move300
Posts: 3
Joined: 2023-10-05 11:02
Has thanked: 3 times

Re: [Software] Update failure, debian 12

#3 Post by move300 »

FreewheelinFrank wrote: 2023-10-05 12:26 Welcome to the forum!

Please post contents of /et/apt/sources.list.

Thank you :D
this is the content of sources.list:

Code: Select all

deb https://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm main non-free-firmware

deb http://ftp.il.debian.org/debian/ bookworm-security main non-free-firmware
deb-src http://ftp.il.debian.org/debian/ bookworm-security main non-free-firmwa>

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates>
deb https://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-updates main non-free-firmware

deb http://deb.debian.org/debian $codename-backports main contrib non-free

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 55 times

Re: [Software] Update failure, debian 12

#4 Post by arochester »

Change to line that says
deb http://deb.debian.org/debian $codename-backports main contrib non-free
to
deb http://deb.debian.org/debian bookworm-backports main contrib non-free

If you don't need source code, and most people don't, you don't need the lines that begin deb-src

move300
Posts: 3
Joined: 2023-10-05 11:02
Has thanked: 3 times

Re: [Software] Update failure, debian 12

#5 Post by move300 »

arochester wrote: 2023-10-05 15:30 Change to line that says
deb http://deb.debian.org/debian $codename-backports main contrib non-free
to
deb http://deb.debian.org/debian bookworm-backports main contrib non-free

If you don't need source code, and most people don't, you don't need the lines that begin deb-src
Like a magic, it worked... TNX =)
how this is happening? or how could i prevent this from happening again in the next time?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2597
Joined: 2010-06-07 16:59
Has thanked: 52 times
Been thanked: 289 times

Re: [Solved] [Software] Update failure, debian 12

#6 Post by FreewheelinFrank »

Possibly you have used some sort of script to generate the sources.list line. The $ sign suggests this a variable intended to be replaced with the current release name. This obviously didn't happen.

It's probably better just to refer to Debian instructions.

https://backports.debian.org/Instructions/#index2h2

AreF004e7
Posts: 1
Joined: 2024-01-10 18:46

Re: [Solved] [Software] Update failure, debian 12

#7 Post by AreF004e7 »

hello guys
can everyone help?
I perfrom this " sudo apt update " and the results as follows:

Code: Select all

Hit:1 https://deb.debian.org/debian bookworm InRelease   
Ign:2 https://deb.debian.org/debian bookworm-security InRelease
Hit:3 https://deb.debian.org/debian bookworm-updates InRelease
Err:4 https://deb.debian.org/debian bookworm-security Release
  404  Not Found [IP: 146.75.118.132 443]
Reading package lists... Done
E: The repository 'https://deb.debian.org/debian bookworm-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Last edited by AreF004e7 on 2024-01-10 19:16, edited 1 time in total.

User avatar
sunrat
Site admin
Site admin
Posts: 7502
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 135 times
Been thanked: 678 times

Re: [Solved] [Software] Update failure, debian 12

#8 Post by sunrat »

@AreF004e7 You should start a new topic as your issue is different from OP.
I suspect your sources are wrong. Default in Bookworm is something like:

Code: Select all

deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

f1izzzy
Posts: 5
Joined: 2025-01-30 15:21
Location: Uzbekistan, Tashkent
Has thanked: 2 times

Re: [Solved] [Software] Update failure, debian 12

#9 Post by f1izzzy »

sunrat wrote: 2024-01-11 02:00 @AreF004e7 You should start a new topic as your issue is different from OP.
I suspect your sources are wrong. Default in Bookworm is something like:

Code: Select all

deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
I have the same problem and when I put that

Code: Select all

deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
the debian gives me a "bash: deb: command not found" what should I do

User avatar
stevepusser
Posts: 13142
Joined: 2009-10-06 05:53
Has thanked: 57 times
Been thanked: 106 times

Re: [Solved] [Software] Update failure, debian 12

#10 Post by stevepusser »

f1izzzy wrote: 2025-01-30 15:24
sunrat wrote: 2024-01-11 02:00 @AreF004e7 You should start a new topic as your issue is different from OP.
I suspect your sources are wrong. Default in Bookworm is something like:

Code: Select all

deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
I have the same problem and when I put that

Code: Select all

deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
the debian gives me a "bash: deb: command not found" what should I do
That's an entry in a text file, not a command you issue in a terminal. And you're glomming onto a thread that's not yours, too!
MX Linux packager and developer

Post Reply