Docker 업데이트의 웹 버전은 성공했지만, Discourse 업데이트의 웹 버전은 실패했습니다.
실패한 업데이트를 리셋했지만, 웹 애플리케이션은 업데이트가 진행 중이라고 표시했습니다.
Discourse를 수동으로 업데이트해 보려고 했습니다.
cd /var/discourse
./launcher rebuild app
그런데 다음과 같은 오류가 발생했습니다.
ERROR: Docker version 19.03.13 not supported,please upgrade to at least 20.10.0, or recommend 24.0.7
Docker를 수동으로 업그레이드하려고 시도했습니다:
wget -qO- https://get.docker.com/ | sh
그리고 다음과 같은 오류가 발생했습니다:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is being held by process 10528 (apt-get)
E: Unable to aquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
제 Discourse 웹사이트가 Oops-Error 500 오류로 다운된 상태입니다.
어떤 생각이 있으신가요?
Canapin
(Coin-coin le Canapin)
2월 5, 2025, 1:09오후
2
이 Docker 버전 오류에 대한 몇 가지 주제가 있습니다:
Thank you. The command you provided did not work. I resolved it with the following solution from ChatGPT:
To update Docker on a DigitalOcean Droplet, follow these steps:
1. Check the Current Version of Docker
Run this command to see the currently installed Docker version:
docker --version
2. Update the Operating System
Make sure the operating system is up-to-date:
sudo apt update && sudo apt upgrade -y
3. Uninstall the Old Version of Docker (if necessary)
Remove any existing version of Doc…
There’s a good chance your OS is out of date and that you should move to a fresh new VM. Does cat /etc/issue suggest that you have 18.04?
You can try
apt update;apt install docker-ce
Another way, that prints a scary message, but is probably safe if you installed docker with apt
wget -qO- https://get.docker.com/ | sh
Coin, 관련 주제에 대한 안내를 해주셔서 감사합니다!
Docker 버전은 19.03.13으로 확인됩니다. 이후 운영체제를 업데이트하려고 했는데
sudo apt update && sudo apt upgrade -y 3
명령을 실행하니 업데이트가 다음 단계에서 멈춰 있습니다…
Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10528 (apt-get)… 454s
초 단위 숫자가 계속 증가하고 있습니다.
ChatGPT에서 제안한 해결 방법입니다. 핵심은 3단계에서 막힌 프로세스를 강제 종료하는 것이었습니다.
해당 오류는 이미 다른 apt 또는 패키지 관리 프로세스가 실행 중이며, 잠금 파일 /var/lib/dpkg/lock-frontend을 점유하고 있음을 나타냅니다. 이로 인해 apt 명령이 진행되지 않습니다. 이 문제를 해결하는 방법은 다음과 같습니다:
문제 해결 단계
실행 중인 apt 프로세스 확인
다른 apt 프로세스가 있는지 확인하려면 다음 명령을 실행하세요:
ps aux | grep apt
apt-get, apt, 또는 dpkg와 같은 프로세스를 찾아보세요. 프로세스가 실행 중이라면(예: apt-get 또는 dpkg), 백그라운드에서 업데이트 또는 설치가 진행 중일 수 있습니다.
프로세스 완료 대기
실제로 다른 프로세스가 실행 중이라면 완료될 때까지 기다리는 것이 좋습니다. 때로는 자동 업데이트나 패키지 설치가 백그라운드에서 실행됩니다.
막힌 프로세스 강제 종료
프로세스가 비정상적으로 오랫동안 실행되고 있다면 종료할 수 있습니다:
sudo kill -9 <PID>
<PID>를 해당 프로세스 ID로 대체하세요(예: 귀하의 경우 10528).
잠금 파일 제거
프로세스를 종료한 후, 오래된 잠금이 남아 있지 않도록 잠금 파일을 제거하세요:
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
패키지 데이터베이스 재구성
패키지 관리자의 잠재적인 문제를 수정하려면 다음 명령을 실행하세요:
sudo dpkg --configure -a
업데이트 재시도
이제 업데이트 명령을 다시 실행하세요:
sudo apt update && sudo apt upgrade -y
참고 사항