공부중

[우분투] 오류 해결 - sudo apt update 시 발생하는 문제 본문

프로그래밍/우분투 ubuntu

[우분투] 오류 해결 - sudo apt update 시 발생하는 문제

복습 2024. 10. 15. 14:47
728x90

우분투 20.04 

wsl2 환경사용

윈도우 10 

 

$ sudo apt update

 

를했다.. 

 

아래와 같은 오류가 발생 

 

더보기
e$ sudo apt update
[sudo] password for huenit:
Hit:1 http://mirror.kakao.com/ubuntu focal InRelease
Get:2 http://mirror.kakao.com/ubuntu focal-updates InRelease [128 kB]
Hit:3 http://mirror.kakao.com/ubuntu focal-backports InRelease
Get:4 http://mirror.kakao.com/ubuntu focal-security InRelease [128 kB]
Hit:5 http://packages.ros.org/ros/ubuntu focal InRelease
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Get:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages [934 kB]
Ign:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
Hit:23 http://packages.ros.org/ros2/ubuntu focal InRelease
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Ign:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Ign:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
Get:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages [17.7 kB]
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Ign:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Ign:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Get:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages [10.9 MB]
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Ign:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Ign:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Ign:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Ign:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Ign:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Ign:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Ign:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Ign:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Err:6 http://mirror.kakao.com/ubuntu focal/main armhf Packages
  404  Not Found [IP: 113.29.189.165 80]
Ign:19 http://mirror.kakao.com/ubuntu focal/restricted armhf Packages
Ign:20 http://mirror.kakao.com/ubuntu focal/universe armhf Packages
Ign:21 http://mirror.kakao.com/ubuntu focal/multiverse armhf Packages
Ign:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Err:22 http://mirror.kakao.com/ubuntu focal-updates/main armhf Packages
  404  Not Found [IP: 113.29.189.165 80]
Ign:24 http://mirror.kakao.com/ubuntu focal-updates/restricted armhf Packages
Ign:25 http://mirror.kakao.com/ubuntu focal-updates/universe armhf Packages
Ign:26 http://mirror.kakao.com/ubuntu focal-updates/multiverse armhf Packages
Err:27 http://mirror.kakao.com/ubuntu focal-backports/main armhf Packages
  404  Not Found [IP: 113.29.189.165 80]
Ign:28 http://mirror.kakao.com/ubuntu focal-backports/universe armhf Packages
Ign:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Err:41 http://mirror.kakao.com/ubuntu focal-security/main armhf Packages
  404  Not Found [IP: 113.29.189.165 80]
Ign:42 http://mirror.kakao.com/ubuntu focal-security/restricted armhf Packages
Ign:43 http://mirror.kakao.com/ubuntu focal-security/universe armhf Packages
Ign:44 http://mirror.kakao.com/ubuntu focal-security/multiverse armhf Packages
Fetched 256 kB in 2s (140 kB/s)
Reading package lists... Done
E: Failed to fetch http://mirror.kakao.com/ubuntu/dists/focal/main/binary-armhf/Packages  404  Not Found [IP: 113.29.189.165 80]
E: Failed to fetch http://mirror.kakao.com/ubuntu/dists/focal-updates/main/binary-armhf/Packages  404  Not Found [IP: 113.29.189.165 80]
E: Failed to fetch http://mirror.kakao.com/ubuntu/dists/focal-backports/main/binary-armhf/Packages  404  Not Found [IP: 113.29.189.165 80]
E: Failed to fetch http://mirror.kakao.com/ubuntu/dists/focal-security/main/binary-armhf/Packages  404  Not Found [IP: 113.29.189.165 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.83 80]

 

인터넷과 gpt에서 아래 파일을 수정하라고는 알려줬을 것 같다. 안했다면 확인해보기 

 

/etc/apt/sources.list 및 /etc/apt/sources.list.d/ 디렉터리 내의 파일들을 확인

 

sudo vi /etc/apt/sources.list

 

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

 

그래도 해결이 안된다. 

 

그러면 아키텍쳐를 제거한다. 

 

1. 아키텍쳐 확인 

dpkg --print-architecture
dpkg --print-foreign-architectures

 

 

robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-architecture
-print-foreign-architectures
amd64
robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-foreign-architectures
armhf

 

 

 

robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-architecture
-print-foreign-architectures
amd64
robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-foreign-architectures
armhf
robo@DESKTOP-57PQH94:/etc/apt$ sudo dpkg --remove-architecture armhf
robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-foreign-architectures
robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-foreign-architectures
robo@DESKTOP-57PQH94:/etc/apt$ dpkg --print-architecture
amd64
robo@DESKTOP-57PQH94:/etc/apt$ sudo apt update
Hit:1 http://packages.ros.org/ros/ubuntu focal InRelease
Hit:2 http://packages.ros.org/ros2/ubuntu focal InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3,238 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [477 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [14.3 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3,169 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [444 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [548 B]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,013 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [214 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [21.4 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [24.8 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,968 B]
Get:16 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [540 B]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]

 

 

해결

728x90

'프로그래밍 > 우분투 ubuntu' 카테고리의 다른 글

[Ubuntu] Real VNC 설치  (1) 2024.12.11
[WSL] 기본 사용자 변경  (0) 2024.10.15
[RVIZ2] vscode로 실행시 생기는 오류  (0) 2024.10.06
[ubuntu] ssh 연결  (1) 2024.10.03
우분투 VS code 가상환경 설정  (3) 2024.10.01