![Linux Mint에 cURL을 설치할 수 없습니다](https://linux55.com/image/61542/Linux%20Mint%EC%97%90%20cURL%EC%9D%84%20%EC%84%A4%EC%B9%98%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.png)
나는 이렇게 쓴다:
sudo apt-get update && apt-get install curl
다음 출력을 얻습니다.
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
그 다음에나는 이렇게 쓴다:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
그런 다음 cURL을 반복적으로 설치하고 다음을 얻었습니다.
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
고쳐 쓰다:
출력은 다음과 같습니다
$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
curl
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 179 kB of archives.
After this operation, 373 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
curl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ natty-updates/main curl i386 7.21.3-1ubuntu1.2
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ natty-security/main curl i386 7.21.3-1ubuntu1.2
404 Not Found [IP: 91.189.88.149 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.21.3-1ubuntu1.2_i386.deb 404 Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
-
업데이트 2:
나는 사용하고있다리눅스 민트11(Rosinka), 인터넷에 연결되어 있습니다.
답변1
apt-get update
여기서는 및 이라는 두 개의 별도 명령을 실행하고 있습니다 apt-get install curl
. 두 명령을 연결하기 만 하면 됩니다 &&
. 즉, "첫 번째 명령이 성공하면 두 번째 명령을 실행합니다. 두 명령 모두 루트로 실행해야 하며, 이는 sudo
명령에 연결하여 수행되지만 두 번째 명령이 sudo
아닌 첫 번째 명령만 실행합니다. 당신이 찾고있는.
sudo apt-get update && sudo apt-get install curl
또한, 뭔가 다른 것이 백그라운드에서 뭔가를 설치하고 있는 것 같습니다. 사용 중인 다른 프로세스를 모두 중지합니다 dpkg
. 마지막으로 일부 인덱스 파일이 다운로드되지 않는다는 오류가 발생하므로 &&
대신 다음을 실행하십시오.
sudo apt-get update; sudo apt-get install curl
답변2
apt-get
dpkg
소프트웨어 패키지를 설치하는 데 사용됩니다 .
다른 프로세스가 dpkg를 사용하고 있는 것 같습니다. 동시에 (GUI) 소프트웨어 관리자에서 무언가를 설치하고 있지 않은지 확인하거나 백그라운드에서 패키지를 업그레이드하고 있지 않은지 확인하세요.