Я поддерживаю локальный репозиторий для Ubuntu 18.04 LTS и недавно обновил репозиторий с помощью apt-mirror. Я попытался обновить пакеты, используя следующие команды
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
Первые две команды работали без ошибок. Однако обновление sudo apt-get привело к следующей ошибке
Get:645 http://192.168.1.1/ubuntuRepo bionic-updates/multiverse amd64 virtualbox-guest-additions-iso all 5.2.18-1~ubuntu18.04.1 [39.0 MB]
Err:645 http://192.168.1.1/ubuntuRepo bionic-updates/multiverse amd64 virtualbox-guest-additions-iso all 5.2.18-1~ubuntu18.04.1
File has unexpected size (38955904 != 39016736). Mirror sync in progress? [IP: 192.168.1.1 80]
Hashes of expected file:
- SHA256:f7c5ab5ea5b1feadc2cf5d8527d7c14c8b34439d5345fd04822f12381681b2a6
- SHA1:5e0d43ebddd08d6256ac809c746de9c483ea83f1 [weak]
- MD5Sum:b2e992fd6462e216bc651ddb020216b8 [weak]
- Filesize:39016736 [weak]
Get:646 http://192.168.1.1/ubuntuRepo bionic-updates/main amd64 xbrlapi amd64 5.5-4ubuntu2.0.1 [61.9 kB]
Fetched 763 MB in 1min 7s (11.4 MB/s)
E: Failed to fetch http://192.168.1.1/ubuntuRepo/pool/multiverse/v/virtualbox-guest-additions-iso/virtualbox-guest-additions-iso_5.2.18-1~ubuntu18.04.1_all.deb File has unexpected size (38955904 != 39016736). Mirror sync in progress? [IP: 192.168.1.1 80]
Hashes of expected file:
- SHA256:f7c5ab5ea5b1feadc2cf5d8527d7c14c8b34439d5345fd04822f12381681b2a6
- SHA1:5e0d43ebddd08d6256ac809c746de9c483ea83f1 [weak]
- MD5Sum:b2e992fd6462e216bc651ddb020216b8 [weak]
- Filesize:39016736 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Как это исправить?
Содержание моего /etc/apt/sources.list приведено ниже.
deb [arch=amd64] http://192.168.1.1/ubuntuRepo bionic main restricted universe multiverse
deb [arch=amd64] http://192.168.1.1/ubuntuRepo bionic-security main restricted universe multiverse
deb [arch=amd64] http://192.168.1.1/ubuntuRepo bionic-updates main restricted universe multiverse
deb [arch=amd64] http://192.168.1.1/ubuntuRepo bionic-proposed main restricted universe multiverse
deb [arch=amd64] http://192.168.1.1/ubuntuRepo bionic-backports main restricted universe multiverse