sudo apt update 중에 404 error 발생시에 해결 방법
해결 방법
First, restore the default repositories using these commands:
mkdir ~/solution
cd ~/solution/
cat << EOF > ~/solution/sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
EOF
sudo sed -i "s/focal/$(lsb_release -c -s)/" ~/solution/sources.list
sudo rm /etc/apt/sources.list
sudo cp ~/solution/sources.list /etc/apt/sources.list
Remove all the PPAs in your system:
sudo mv /etc/apt/sources.list.d/* ~/solution
Update the repositories:
sudo apt update
'Error 해결 및 유용한 방법들' 카테고리의 다른 글
[drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership (0) | 2024.03.04 |
---|---|
Failed to initialize NVML: Unknown Error (0) | 2024.02.18 |
우분투 이유 없이 계속 리부팅 되는 이슈 (0) | 2023.12.06 |
ERROR: Failed to download 발생 .. (0) | 2023.11.06 |
리눅스 mount (0) | 2023.10.20 |