이 작업을 수행하려고 할 때 sudo apt update
나는 다음과 같은 상황에 직면합니다.
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: ***.**.**.*** ***]
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.
어떻게 해결할 수 있나요?
답변1
source.list에 다음 줄이 있습니다.
deb http://deb.debian.org/debian bookworm-security main
이 /debian
디렉터리에는 보안 업데이트가 포함되어 있지 않으며 다음으로 바꿔야 합니다.
deb http://deb.debian.org/debian-security/ bookworm-security main
명령줄:
sudo sed -e '/security/s/^/#/' -i /etc/apt/sources.list
echo "deb http://deb.debian.org/debian-security/ bookworm-security main" |
sudo tee -a /etc/apt/sources.list