apt-mirror-错误?

apt-mirror-错误?

我已使用 成功在本地为 14.04 设置了 Ubuntu 存储库apt-mirror

但一开始sources.list我给出了deb-amd64下载 64 位存储库,完成后我仅添加了另一组 deb 存储库(比如deb-i386)用于下载 32 位。

我中途停止了它,因为我不想镜像 32 位存储库。之后我运行clean.sh并删除了 32 位文件。

现在,当我sudo apt-get update使用 LAN 存储库时,它会成功获得更新,但其间它会显示无法获取二进制i386文件的错误。错误如下:

Err http://<lanip> trusty/main i386 Packages
  404  Not Found
Err http://<lanip> trusty/restricted i386 Packages
  404  Not Found
W: Failed to fetch http://<lanip>/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://<lanip>/ubuntu/dists/trusty/restricted/binary-i386/Packages  404  Not Found

W: Failed to fetch http://<lanip>/ubuntu/dists/trusty/universe/binary-i386/

我的 apt-mirror 列表如下:

  ############# config ##################


set base_path    /data/ubuntu_repository/trusty_repo
  set nthreads     20

  set _tilde 0
    #
    #################################

# Trusty 64Bit Mirror
deb-amd64 http://in.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb-amd64 http://in.archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-amd64 http://in.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb-amd64 http://in.archive.ubuntu.com/ubuntu trusty-proposed main restricted universe multiverse
deb-amd64 http://in.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse

###### Ubuntu Partner Repo
deb-amd64 http://archive.canonical.com/ubuntu trusty partner

###### Ubuntu Extras Repo
deb-amd64 http://extras.ubuntu.com/ubuntu trusty main

clean http://archive.ubuntu.com/ubuntu
clean http://security.ubuntu.com/ubuntu
clean http://archive.canonical.com/ubuntu

答案1

我遇到了同样的问题;我的 amd64 镜像可以正常工作,但是我讨厌那些错误。解决方案是在我的文件[ arch=amd64 ]的每个活动行中添加。sources.list

不再有错误!你问我在哪里找到这些信息?>脸红<,指向阅读手册用手指着自己。$ man sources.list

# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
#deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb [ arch=amd64 ] http://local_apt_mirror/ubuntu/ trusty main restricted
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src [ arch=amd64 ] http://local_apt_mirror/ubuntu/ trusty main restricted

相关内容