J'ai le problème suivant sur Ubuntu 12.04 LTS sur une machine 64 bits: Chaque fois que j'essaie de mettre à jour le référentiel aptitude, la mise à jour échoue étrangement avec une erreur liée à i386 . Je suppose que cela ne devrait pas se produire sur un système 64 bits.
root@liv-HP-Compaq-dc7900:/home/liv# apt-get update
Ign file: apt-build Release.gpg
Get:1 file: apt-build Release [107 B]
Ign file: apt-build/main TranslationIndex
Err file: apt-build/main i386 Packages
File not found
[..]
W: Failed to fetch file:/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages File not found
E: Some index files failed to download. They have been ignored, or old ones used instead.
J'ai essayé de restaurer status-old
sans succès :
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
J'ai aussi essayé:
root@liv-HP-Compaq-dc7900:/home/liv# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
Mais il ne semble ni faire ni signaler quoi que ce soit d'utile. Chaque suivant apt-get update
se termine par une erreur.
Pour mémoire, mon /etc/apt/sources.list
fichier ressemble à ceci:
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/multiverse/binary-i386/
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/universe/binary-i386/
# deb cdrom:[Xubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-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://nl.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise universe
deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-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://nl.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-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://nl.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-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 precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://cran.at.r-project.org/bin/linux/ubuntu precise/
# deb-src http://cran.at.r-project.org/bin/linux/ubuntu precise/
# deb http://archive.canonical.com/ precise partner
# deb-src http://archive.canonical.com/ precise partner
Et le noyau utilisé est:
liv@liv-HP-Compaq-dc7900:~$ uname -a
Linux liv-HP-Compaq-dc7900 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Qu'est-ce qui ne va pas et comment puis-je le réparer?
apt
64-bit
update-manager
landroni
la source
la source
Réponses:
J'ai eu le même problème en utilisant mon propre
apt-mirror
serveur pour mettre à jour legit-core
package.Dans mon cas, j'ai résolu le problème en ajoutant
[arch=amd64]
l'entrée d'origine dans le/etc/apt/sources.list
.Exemple:
Original:
deb http://192.168.111.222/mirror/git-core precise main
Solution:
deb [arch=amd64] http://192.168.111.222/mirror/git-core precise main
Les détails peuvent être trouvés sur: https://wiki.ubuntu.com/MultiarchSpec#apt_sources
Dans votre cas, vous devez modifier
/etc/apt/sources.list.d/apt-build.list
.la source
[arch=amd64]
astuce/etc/apt/sources.list.d/apt-build.list
.Comme suggéré par la réponse acceptée, j'ai dû modifier le contenu de:
De:
à:
Notez que l'erreur provient uniquement de
apt-build.list
. Aucune modification n'a/etc/apt/sources.list
été nécessaire pour résoudre le problème.la source
J'ai dû faire une autre légère correction, à savoir:
avant qu'apt ne cesse de se plaindre - je n'ai jamais traité les [options] de sources.list auparavant, il m'a donc fallu quelques minutes de recherche sur Google et d'essais / erreurs pour bien faire les choses ...
la source