我需要设置 Ubuntu 7.10(gutsy)(不是 17.10)存储库,因此我创建了如下本地文件:(主机操作系统:Ubuntu 16.04 apt.conf
)source.list
apt.conf
Dir::Etc::main ".";
Dir::Etc::Parts "./apt.conf.d";
Dir::Etc::sourcelist "./sources.list";
Dir::Etc::sourceparts "./sources.list.d";
Dir::State "./apt-tmp";
Dir::State::status "./apt-tmp/status";
Dir::Cache "./apt-tmp";
Acquire::CompressionTypes::Order:: "gz";
Debug::Acquire::http true;
Debug::pkgAcquire::Auth true;
Debug::Hashs true;
Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy true;
sources.list
###### Ubuntu Main Repos
deb http://old-releases.ubuntu.com/ubuntu/ gutsy main universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy main
###### Ubuntu Update Repos
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-proposed main universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-security main
# deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main
# deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-proposed main
# deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main
然而, apt-get -c apt.conf update
由于著名的错误,它无法工作,Hash Sum mismatch
。
我检查了http://old-releases.ubuntu.com/ubuntu/dists/gutsy/Release文件,我发现很多.gz
文件的 SHA256 哈希值与 相同baa89858c7e545390273530ba63c61b94c2e09d38c28b0a0311bfa7bde396181
。这怎么可能呢?
即使我不使用apt.conf
的Acquire::CompressionTypes::Order
选项,apt-get update
由于其他文件的哈希不匹配错误,它也无法工作。我的问题是:
我怎样才能向它的维护者指出的
http://old-releases.ubuntu.com
哈希值已被破坏?有可能完全忽略
Hash Sum mismatch
错误吗?
编辑:显然,sudo rm -rf /var/lib/apt/lists/*
不会解决这个问题。