Embedded/Raspberry Pi
[Raspberry Pi] 라즈베리파이 apt-get update upgrade 문제 해결하기
다크엔지니어
2022. 1. 20. 23:14
반응형
데비안 계열 패키지를 사용하기 위해서는 업데이트와 업그레이드가 필요하다.
sudo apt-get update
sudo apt-get upgrade
아래와 같은 문제가 보일 수 있다. 이렇게 되면 정상적으로 패키지 사용이 불가하다.
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
이를 해결하기 위해 크게 두 가지 방법이 있다.
1. apt update 후 apt upgrade 진행 후 다시 위에 커맨드 진행
1번 방법은 앞에 sudo 를 붙이고 진행하면 된다.
2. /etc/apt/sources.list 에 deb 내용 추가
sudo vi /etc/apt/sources.list
deb http://ftp/kaist.ac.kr/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://ftp.kaist.ac.kr/raspbian/raspbian/ buster main contrib non-free rpi
입력 후 apt-get 을 진행해 본다.
apt-get update 및 upgrade 가 정상적으로 진행이 안됬을 경우,
커널 빌드 시 bison not found 와 같은 문구를 볼 수 있다. 그럴때에는 apt update 및 upgrade 를 진행한다.
반응형