Deepin Linux에 apache2를 설치하려고 하면 이 오류가 계속 발생합니다.

Deepin Linux에 apache2를 설치하려고 하면 이 오류가 계속 발생합니다.
 sudo apt-get install apache2 apache2-doc apache2-utils

이 오류가 계속 발생합니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
Suggested packages:
  apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-doc apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 108 kB/5,768 kB of archives.
After this operation, 29.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://packages.deepin.com/deepin unstable/main amd64 liblua5.2-0 amd64 5.2.4-1
  404  Not Found [IP: 202.141.160.114 80]
E: Failed to fetch http://packages.deepin.com/deepin/pool/main/l/lua5.2/liblua5.2-0_5.2.4-1_amd64.deb  404  Not Found [IP: 202.141.160.114 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

어떻게 해야 합니까?

답변1

오래된 apt-get색인이 있습니다. 종속 패키지 중 하나를 더 이상 찾을 수 없습니다.

당신은 여기에 있으므로 unstable때때로 이런 일이 일어나야 합니다. 해당 서버의 파일을 확인하면 apt-get install얻으려는 파일의 최신 버전이 ( vs ) liblua5.2-0_5.2.4-1.1_amd64.deb가 아니라 (2016년 6월 3일 업데이트됨)임을 알 수 있습니다 .liblua5.2-0_5.2.4-1_amd64.deb11.1

색인을 업데이트해야 합니다.

$ apt-get update

apt-get매뉴얼 에서 :

update

update소스에서 패키지 인덱스 파일을 다시 동기화하는 데 사용됩니다. 사용 가능한 패키지의 색인은 지정된 위치에서 가져옵니다 /etc/apt/sources.list. 예를 들어, Debian 아카이브를 사용할 때 이 명령은 Packages.gz새 패키지와 업데이트된 패키지에 대한 정보를 찾기 위해 파일을 검색하고 검색합니다. an은 항상 updateor보다 먼저 실행되어야 합니다. 패키지 파일의 크기를 미리 알 수 없으므로 전체적인 일정이 부정확할 수 있으니 주의하시기 바랍니다.upgradedist-upgrade

관련 정보