My distrib is Ubuntu 14.04 LTS.
Since some time, apt-get update it stuck. After hours of investigation, it seems that the file http://archive.canonical.com/ubuntu/dists/trusty/InRelease does not exists anymore. But the Release file exists.
I've also tried with other repositories.
I can't find where the system decides to get InRelease and not Release.
What can I do to fix that?
Thanks a lot.
Edit:
apt version: apt 1.0.1ubuntu2
ouput of apt-cache policy apt
:
apt:
Installed: 1.0.1ubuntu2.17
Candidate: 1.0.1ubuntu2.17
Version table:
*** 1.0.1ubuntu2.17 0
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.0.1ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Edit:
$ ls /var/lib/apt/lists/ | grep -i release
archive.canonical.com_ubuntu_dists_trusty_Release
archive.canonical.com_ubuntu_dists_trusty_Release.gpg
archive.ubuntu.com_ubuntu_dists_trusty-backports_InRelease
archive.ubuntu.com_ubuntu_dists_trusty_Release
archive.ubuntu.com_ubuntu_dists_trusty_Release.gpg
archive.ubuntu.com_ubuntu_dists_trusty-updates_InRelease
security.ubuntu.com_ubuntu_dists_trusty-security_InRelease
$ grep -v ^# /etc/apt/sources.list
deb http://archive.canonical.com/ubuntu trusty partner
deb http://archive.ubuntu.com/ubuntu trusty universe main multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main multiverse universe
deb http://archive.ubuntu.com/ubuntu trusty-updates main multiverse universe
deb http://archive.ubuntu.com/ubuntu trusty-backports main multiverse universe
apt-cache policy apt
. As far as I can make out, theInRelease
file was introduced after 14.04 as part of the AptByHash mechanism.ls /var/lib/apt/lists/ | grep -i release
also yourcat /etc/apt/sources.list
InRelease
file, I asked for that output to see if any of your lists has been downloaded inInRelease
version. I'm not sure if it's going to work for you, anyway, give it a shot...sudo cp -r /var/lib/apt/lists{,.bk}
: to get a backup of your apt lists direcetory, thensudo rm /var/lib/apt/lists/*
. finallysudo apt update
.