![sudo apt-get 명령이 Linux Mint에서 작동하지 않습니다](https://linux55.com/image/77373/sudo%20apt-get%20%EB%AA%85%EB%A0%B9%EC%9D%B4%20Linux%20Mint%EC%97%90%EC%84%9C%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.png)
내 Linux Mint 컴퓨터에 git/Fluxgui와 같은 일부 프로그램을 설치하려고 합니다. 하지만 비밀번호를 사용하여 다음 명령을 입력할 때마다
sudo apt-get install git
또는
sudo apt-get install fluxgui
나는 단지 몇 밀리초의 출력만을 얻습니다.
Reading packages list ... 8%:
그런 다음 사라지고 콘솔로 돌아가서 다음 줄을 입력합니다. sudo apt-get install
명령을 입력한 적이 없는 것 같습니다 .
확실히, 나는 똑같은 일을 시도했고 sudo apt-get check
똑같은 일이 일어났습니다.
이 문제를 해결하는 방법을 아는 사람이 있나요?
편집: Sudo apt-get update를 실행해 보았습니다. 가져온 패키지가 나열되고 그 뒤에는 다음이 표시됩니다.
Fetched 3,116 kB in 6s (496 kB/s)
그 직후에도 똑같은 일이 일어났고 그것은 나에게 다음과 같은 결과를 안겨주었습니다.
Reading packages list ... 8%:
오류 설명 없이 다시 종료됩니다.
답변1
너 먼저 달려야 해apt-get update
매뉴얼 페이지에서:
update
update is used to resynchronize the package index files from their sources. The indexes of available
packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a
Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and
updated packages is available. An update should always be performed before an upgrade or dist-upgrade.
Please be aware that the overall progress meter will be incorrect as the size of the package files cannot
be known in advance.
따라서 APT가 패키지 데이터베이스를 가져와 새로 고치려면 이 작업을 먼저 수행하는 것이 좋습니다.apt-get update
답변2
나는 내 문제에 대한 해결책을 찾았습니다. /etc/apt/sources.list 파일에 다음 줄을 추가했습니다.
deb http://security.ubuntu.com/ubuntu trusty-security main
어떻게 든 파일에는 다른 줄만 포함되어 있습니다.
deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu vivid/
어떻게 든 이것은 작동하지 않습니다.