Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] apt update not working

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
user9230254938
Posts: 3
Joined: 2024-04-13 16:39
Has thanked: 1 time

[Solved] apt update not working

#1 Post by user9230254938 »

Hello,
I am new to Debian I am not sure how to fix my current issue. When I run sudo apt update I get the following output

Code: Select all

Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                                                   
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease                                                                          
Hit:4 http://repository.spotify.com stable InRelease                                                                                             
Hit:5 https://packages.microsoft.com/repos/code stable InRelease              
Ign:6 https://apt.kitware.com/ubuntu bookworm InRelease 
Err:7 https://apt.kitware.com/ubuntu bookworm Release
  404  Not Found [IP: 66.194.253.25 443]
Reading package lists... Done
E: The repository 'https://apt.kitware.com/ubuntu bookworm 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.
Here is my sources.list:

Code: Select all

# See sources.list(5) manpage for more information
# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

# Uncomment if you want the apt-get source function to work
#deb-src http://deb.debian.org/debian bookworm main contrib non-free
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free
#deb-src http://deb.debian.org/debian-security bookworm-security main contrib non-free
I'm not sure what I should do, I tried the sources.list file from the Debian website too, getting the same problem.
Thanks
Last edited by user9230254938 on 2024-04-13 22:25, edited 1 time in total.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2139
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 233 times

Re: [Software] apt update not working

#2 Post by FreewheelinFrank »

The offending entry is in

Code: Select all

/etc/apt/sources.list.d

user9230254938
Posts: 3
Joined: 2024-04-13 16:39
Has thanked: 1 time

Re: [Software] apt update not working

#3 Post by user9230254938 »

This is what is in that directory
archive_uri-https_apt_kitware_com_ubuntu_-bookworm.list:

Code: Select all

deb https://apt.kitware.com/ubuntu/ bookworm main
# deb-src https://apt.kitware.com/ubuntu/ bookworm main
vscode.list:

Code: Select all

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2139
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 233 times

Re: [Software] apt update not working

#4 Post by FreewheelinFrank »

user9230254938 wrote: 2024-04-13 19:32 This is what is in that directory
archive_uri-https_apt_kitware_com_ubuntu_-bookworm.list:

Code: Select all

deb https://apt.kitware.com/ubuntu/ bookworm main
# deb-src https://apt.kitware.com/ubuntu/ bookworm main
There is no bookworm suite in that repository. It's for Ubuntu, and available suites reflect Ubuntu versions.

What were you trying to install from there and do Kitware make any claim that it's compatible with Debian?

user9230254938
Posts: 3
Joined: 2024-04-13 16:39
Has thanked: 1 time

Re: [Software] apt update not working

#5 Post by user9230254938 »

Oh right, I forgot what it was, it was probably from some guide to install something and I didn't realise the incompatibility.😅
It works now without this file.
Thanks!
Last edited by user9230254938 on 2024-04-13 22:24, edited 1 time in total.

User avatar
PsychoHermit
Posts: 74
Joined: 2022-08-16 04:17
Location: Carson City, Nv
Has thanked: 6 times
Been thanked: 5 times

Re: [Solved] apt update not working

#6 Post by PsychoHermit »

You shouldn't use foreign repositories, eventually you will break Debian.

--glenn

Post Reply