web-dev-qa-db-fra.com

Erreur lors de la mise à niveau sur Ubuntu 16.04

Lorsque j'essaie de mettre à niveau le logiciel sur mon ordinateur avec Sudo apt-get upgrade, l'erreur suivante se produit

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libpam-systemd libsystemd0 libudev1 systemd systemd-sysv udev
6 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 5,051 kB of archives.
After this operation, 62.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 systemd-sysv AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
Err:2 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 libpam-systemd AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
Err:3 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 libsystemd0 AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
Err:4 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 systemd AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
Err:5 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 udev AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
Err:6 http://de.archive.ubuntu.com/ubuntu xenial-updates/main AMD64 libudev1 AMD64 229-4ubuntu11
  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-sysv_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd0_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_229-4ubuntu11_AMD64.deb  404  Not Found [IP: 141.76.1.200 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Mon sources.list ressemble à

# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta AMD64 (20150805)]/ trusty main restricted    
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted    

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted    

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial universe
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe    

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse    

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse    

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse    

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner    

# deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu precise/ # disabled on upgrade to xenial
# deb http://cran.rstudio.com/bin/linux/ubuntu trusty/ # disabled on upgrade to xenial    

deb http://deb.torproject.org/torproject.org xenial main
deb-src http://deb.torproject.org/torproject.org xenial main
deb [Arch=armhf] http://linux-packages.resilio.com/resilio-sync/deb 
resilio-sync non-free

J'ai essayé d'exécuter les deux solutions recommandées mais elles ne résolvent pas non plus le problème. J'ai essayé de rechercher le problème mais je n'ai pas pu trouver quelque chose de similaire.

9
So S

J'imagine que votre liste de paquets et de cache de gestionnaire de paquets est obsolète.

mais pourquoi?

Vous utilisez xenial, l'un des packages que vous essayez d'atteindre est libpam-systemd, que votre gestionnaire de pkg tente d'extraire à partir d'ici:

http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_229-4ubuntu11_AMD64.deb

Quel serveur vous répond avec un 404, cela signifie qu'il n'existe pas.

Si vous vérifiez le référentiel principal , vous verrez qu'il n'est pas là aussi.

Et si vous recherchez libpam-systemd dans la section xenial-updates dans paquets Ubunt . le résultat serait 229-4ubuntu16 pendant que vous essayez d'atteindre 229-4ubuntu11, et l'autre chose est que cette nouvelle version est disponible sur votre référentiel choisi. ici c'est.

Que faire?

Mettez à jour vos listes:

Sudo apt update

Il devrait faire le travail pour vous.

Toutefois, si le problème persiste après la mise à jour des listes, essayez de supprimer ces fichiers, puis exécutez à nouveau la commande ci-dessus:

Sudo rm /var/lib/apt/lists/*
Sudo rm /var/cache/apt/*.bin
14
Ravexina