apt-get update unable to download webmin-virtual-server_6.03.gpl_all.deb, with error "size mismatch"

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 upgrade

Reading 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?

Status: 
Closed (fixed)

Comments

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?

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

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.

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

Joe's picture
Submitted by Joe on Fri, 04/27/2018 - 01:06 Pro Licensee

--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.

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 ?

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.

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

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

Joe's picture
Submitted by Joe on Fri, 04/27/2018 - 15:04 Pro Licensee

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.

Seems to be fixed now. Today it works !

Works on Ubuntu 14.04 with a simple apt-get update and apt-get upgrade

Thanks

@Pit: We're not talking about Ubuntu as you may see in the Issue-Header ;-)

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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.