본문 바로가기

기타

[Linux] apt update error

개요

impish error로 apt update가 되지 않는다. 개인 서버지만 최근 지인에게 빌려주었고, 지인이 셋팅하다가 문제가 발생했다.

그런데 고치는데 생각보다(?) 시간을 많이 쓰게 되어서 작성해본다.

apt update error

apt update시 특정 부분에서 update를 할 수 없다고 나온다.

http://security.ubuntu.com/ubuntu impish-security Release
404  Not Found [IP: 2620:2d:4000:1::16 80]

해결법

필자의 경우, 문제를 일으키는 리스트들만 찾아서 rm으로 삭제 후, 터미널을 다시 열고 apt update를 진행했다.

 

/etc/apt/sources.list.d/ 에서 해당 파일을 찾을 수 있다.

sudo ls -l /etc/apt/sources.list.d/

 

의심스러운 리스트를 찾았다면, 제거하면 된다.

rm -rf /etc/apt/sources.list.d/*-impish  # 정확한 list명은 기억나지 않음

 

그리고 apt update를 진행하면 된다.(안되면 터미널 다시 켜본다)

 

 

references

https://askubuntu.com/questions/1423498/impish-security-release-error-on-ubuntu-22-04-lts-while-running-sudo-apt-update