Virtualmin tells, that there are updates available, but I'm not able to install them. I can wget the file mentioned manually without Problems, but apt-get tells it's a size mismatch:
apt-get upgradeReading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: libruby1.8 libruby1.9.1 ri1.9.1 ruby1.8 ruby1.9.1 webmin-virtual-server 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2,505 kB/11.7 MB of archives. After this operation, 26.6 kB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtual-server all 6.03.gpl [2,505 kB] Fetched 1 B in 0s (12 B/s) Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Size mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Comments
Submitted by Pit on Thu, 04/26/2018 - 04:54 Comment #1
https://www.virtualmin.com/comment/795321#comment-795321
Submitted by anrikun on Thu, 04/26/2018 - 04:57 Comment #2
Same problem here:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
webmin-virtual-server
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 2505 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main webmin-virtual-server all 6.03.gpl [2505 kB]
Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-universal/main/binary-amd64/webmin-virtual-server_6.03.gpl_all.deb Size mismatch
Fetched 1 B in 0s (3 B/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Submitted by helonaut on Thu, 04/26/2018 - 07:51 Comment #3
I can confirm this issue. --fix-missing does not solve the problem. Probably something wrong on the depository side?
Debian 8 Jessy here by the way, so it's not limited to Debian 7.
Kind Regards
Submitted by tomperanteau on Thu, 04/26/2018 - 12:04 Comment #4
Yep, same here. It's happening on seven of my servers that run Webmin, and it seems to have started about a week or so ago. And the --fix-missing doesn't help.
Submitted by freddes51 on Thu, 04/26/2018 - 13:11 Comment #5
Same problem for me
Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: webmin-virtual-server 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2505 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://software.virtualmin.com/gpl/debian/ virtualmin-universal/main webmin-virtual-server all 6.03.gpl [2505 kB] Fetched 1767 kB in 1s (1365 kB/s) E: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-universal/mai... Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
DEBIAN 8
Related comments from Joe the maintainer starting at https://www.virtualmin.com/comment/795320#comment-795320
--fix-missing won't do anything.
The issue is bogus metadata.
Can y'all try:
# apt-get clean
# apt-get update
# apt-get install webmin-virtual-server
I've regenerated metadata in our repo since I last gave that advice, so I'm hopeful it'll work this time.
Submitted by toli on Fri, 04/27/2018 - 01:08 Pro Licensee Comment #8
I have a clue.
On some of my server i have repos: deb http://software.virtualmin.com/gpl/debian/ virtualmin-jessie main deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main
and there is error: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
on other server i have repos: deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main and here all is ok.
I have question. Can i safely change repos from "deb http://software.virtualmin.com/gpl/debian/ virtualmin-jessie main" to deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main ?
Submitted by bithausen on Fri, 04/27/2018 - 02:51 Comment #9
Yes you can/should switch to the repo http://software.virtualmin.com/vm/6/gpl/apt
You'll need to import the new GPG key by doing:
# wget http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin-6
# apt-key add RPM-GPG-KEY-virtualmin-6
Now things should work as expected. I'm not sure if this requires cleaning out the old repo meta data.
Submitted by toli on Fri, 04/27/2018 - 03:23 Pro Licensee Comment #10
Now is ok. Thx.
Submitted by helonaut on Fri, 04/27/2018 - 03:51 Comment #11
Hello, I’m on the default repo:
Http://software.virtualmin.com/gpl/debian virtualmin-jessie main
I’m sure a lot of people are still running these. Suggesting that everybody should change to (forgive me) a new URL and importing a new key (which is not possible through the webinterface as far as I know) is a bit strange as a “solution” dont you think? Why not just fix the repo?
Kind Regards
Submitted by toli on Fri, 04/27/2018 - 03:55 Pro Licensee Comment #12
If Y install VM v5 you have http://software.virtualmin.com/gpl/debian virtualmin-jessie main - repo Now when Y install fresh VM v6 repo is http://software.virtualmin.com/vm/6/gpl/apt
I think it's natural to change to a new repo.
Submitted by bithausen on Fri, 04/27/2018 - 05:39 Comment #13
Hi helonaut,
it was not a "have to do" but a "can do" ... Just one (of many) possible solutions for the described problem. Since toli runs several servers using different repos I thought it could be a good idea to harmonise the apt.sources files. That's why I wrote can/should.
cya, Franz
Submitted by axetek on Fri, 04/27/2018 - 13:55 Comment #14
None of the above works for me...
Get:1 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main webmin-virtual-server all 6.03.gpl [2505 kB] Fetched 1767 kB in 2s (830 kB/s) E: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-universal/mai... Size mismatch
Please advise.
Thank you!
So, apt-get clean apparently doesn't actually clean. And, more frustratingly, I can't reproduce this on my Debian 9 test system. Try running the following:
# rm -f /var/lib/apt/lists/*virtualmin*
# apt-get clean
# apt-get update
And, then the update should work.
Submitted by axetek on Fri, 04/27/2018 - 15:55 Comment #16
Nope, that didn't work for me, either :-(
Get:1 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main webmin-virtual-server all 6.03.gpl [2505 kB] Fetched 1767 kB in 1s (1012 kB/s) E: Failed to fetch http://software.virtualmin.com/gpl/ubuntu/dists/virtualmin-universal/mai... Size mismatch
Submitted by Broxi on Sat, 04/28/2018 - 01:23 Comment #17
Seems to be fixed now. Today it works !
Submitted by axetek on Sat, 04/28/2018 - 02:57 Comment #18
Thank you.
Submitted by Pit on Sat, 04/28/2018 - 13:52 Comment #19
Works on Ubuntu 14.04 with a simple
apt-get update
andapt-get upgrade
Thanks
Submitted by Broxi on Sat, 04/28/2018 - 14:03 Comment #20
@Pit: We're not talking about Ubuntu as you may see in the Issue-Header ;-)
Submitted by helonaut on Sun, 04/29/2018 - 14:14 Comment #21
Idd, I think the depository has been fixed because I didnt change anything to my repo settings and today it just worked with apt-get update & upgrade.
Thank you for fixing the depo guys!
Submitted by IssueBot on Sun, 05/13/2018 - 14:30 Comment #22
Automatically closed - issue fixed for 2 weeks with no activity.