Ubuntu 16.04에서 패키지 목록을 업데이트하는 동안 오류를 수정하는 방법은 무엇입니까?

Ubuntu 16.04에서 패키지 목록을 업데이트하는 동안 오류를 수정하는 방법은 무엇입니까?

내 업데이트를 시도할 때 이 오류가 발생합니다.우분투 16.04. 나는 이미 몇 가지 해결책을 시도했지만 지금까지 아무것도 효과가 없었습니다.

오류:

W: http://archive.canonical.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/upubuntu-com/network/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/upubuntu-com/network/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

원하지 않는 패키지/저장소를 선택 취소한 후소프트웨어 및 업데이트 섹션에서 몇 가지 오류를 제거했지만 여전히 존재하는 오류는 거의 없습니다.

 The repository 'http://ppa.launchpad.net/upubuntu-com/network/ubuntu xenial Release' does not have a Release file.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 W: http://archive.canonical.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
 E: Failed to fetch http://ppa.launchpad.net/upubuntu-com/network/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
 E: Some index files failed to download. They have been ignored, or old ones used instead.

솔루션을 적용한 후아래(Raphael 제공)에서 대부분의 오류가 해결되었습니다. 다음 오류를 제외하고:

 W: The repository 'http://ppa.launchpad.net/upubuntu-com/network/ubuntu xenial Release' does not have a Release file.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 E: Failed to fetch http://ppa.launchpad.net/upubuntu-com/network/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
 E: Some index files failed to download. They have been ignored, or old ones used instead.

답변1

Xenial을 (를) 사용하고 있지만 sources.list에 대한 링크가 포함되어 있습니다 Precise. 이를 바로잡기 위해,

  • 현재 백업 sources.list:

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
    
  • 새로 만들기 source.list:

    sudo nano /etc/apt/sources.list
    
  • 다음을 복사하여 붙여넣으세요.

    deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 
    
  • 그런 다음 키보드에서 다음을 누릅니다.

    Ctrl+ X그리고 Y마지막으로 Enter.

  • 마지막으로 소스를 업데이트해 보세요.

    sudo apt-get update
    

편집하다:- ppa오류는 그것이 말하는 것입니다. ppa에 대한 릴리스 파일이 없습니다 Xenial. 을(를 ) 제거하려면 ppas다음 답변을 따르십시오.Ask우분투.

관련 정보