Wie behebe ich den Fehler beim Aktualisieren meiner Paketliste in Ubuntu 16.04?

Wie behebe ich den Fehler beim Aktualisieren meiner Paketliste in Ubuntu 16.04?

Ich erhalte diese Fehlermeldung, wenn ich versuche, meinUbuntu 16.04. Ich habe bereits einige Lösungen ausprobiert, aber bisher hat nichts funktioniert.

Fehler:

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.

Nachdem Sie einige unerwünschte Pakete/Repositorys deaktiviert habenIm Abschnitt „Software und Updates“ konnte ich einige der Fehler beheben, aber einige sind immer noch vorhanden:

 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.

Nach dem Auftragen der Lösungunten bereitgestellt (von Raphael), die meisten Fehler wurden behoben. Außer diesen Fehlern:

 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.

Antwort1

Sie verwenden Xenial, aber Ihr sources.listenthält Links für Precise. Um das zu korrigieren,

  • Sichern Sie Ihre aktuelle sources.list:

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
    
  • Erstelle eine neue source.list:

    sudo nano /etc/apt/sources.list
    
  • Kopieren Sie Folgendes und fügen Sie es ein:

    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 
    
  • Geben Sie dann Folgendes auf der Tastatur ein:

    Ctrl+ Xdann Yund schließlich Enter.

  • Versuchen Sie abschließend, Ihre Quellen zu aktualisieren:

    sudo apt-get update
    

BEARBEITEN:- Der ppaFehler ist, was er sagt. Das ppahat keine Release-Datei für Xenial. Um zu entfernen ppas, folgen Sie bitte dieser Antwort unterFragenUbuntu.

verwandte Informationen