Reinstall virtualmin base problem

There must be something wrong with my system, once again something i am trying to update or reinstall from Virtualmin is falling over with a "Hash Sum Mismatch" error.

dpkg -r virtualmin-base
(Reading database ... 155343 files and directories currently installed.)
Removing virtualmin-base (1.0-35) ...
root@goanna1:/home/myuser# apt-get install virtualmin-base
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  usermin-virtual-server-mobile usermin-virtual-server-theme webmin-virtual-server-mobile webmin-virtualmin-dav webmin-virtualmin-mailman
  webmin-virtualmin-svn
The following NEW packages will be installed:
  usermin-virtual-server-mobile usermin-virtual-server-theme virtualmin-base webmin-virtual-server-mobile webmin-virtualmin-dav
  webmin-virtualmin-mailman webmin-virtualmin-svn
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 2,440 kB of archives.
After this operation, 5,007 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 usermin-virtual-server-mobile all 2.1 [64.0 kB]
Get:2 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 usermin-virtual-server-theme all 6.8 [2,193 kB]
Get:3 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 webmin-virtual-server-mobile all 2.6 [67.4 kB]
Get:4 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 webmin-virtualmin-dav all 3.8 [21.1 kB]
Get:5 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 webmin-virtualmin-mailman all 6.3 [39.8 kB]
Get:6 http://software.virtualmin.com/gpl/debian virtualmin-universal/main amd64 webmin-virtualmin-svn all 5.1 [42.2 kB]
Get:7 http://software.virtualmin.com/gpl/debian virtualmin-squeeze/main amd64 virtualmin-base all 1.0-30 [13.0 kB]
Err:7 http://software.virtualmin.com/gpl/debian virtualmin-squeeze/main amd64 virtualmin-base all 1.0-30
  Hash Sum mismatch
Fetched 2,440 kB in 2s (889 kB/s)    
E: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-squeeze/main/binary-amd64/virtualmin-base_1.0-30_all.deb  Hash Sum m
ismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

the following seems to work ok

apt-get clean
root@goanna1:/home/myuser# apt-get update
Hit:1 http://asia-east1.gce.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://asia-east1.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                                         
Get:3 http://asia-east1.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                                       
Ign:4 http://software.virtualmin.com/gpl/debian virtualmin-squeeze InRelease                                                                    
Ign:5 http://software.virtualmin.com/gpl/debian virtualmin-universal InRelease                                                                  
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                   
Hit:7 http://archive.canonical.com/ubuntu xenial InRelease                                              
Hit:8 http://software.virtualmin.com/gpl/debian virtualmin-squeeze Release                              
Hit:10 http://software.virtualmin.com/gpl/debian virtualmin-universal Release      
Fetched 306 kB in 1s (225 kB/s)                              
Reading package lists... Done
Status: 
Active

Comments

Try running apt-cache clean

Joe's picture
Submitted by Joe on Mon, 05/08/2017 - 01:26 Pro Licensee

In addition to Jamie's advice, I'd add that removing virtualmin-base is never recommended. If your system is in production, it will break quite a bit of configuration to do so.

Why are you trying to reinstall it? If there's something wrong with the system, it's better to address the specific problem (unless it is a new system that isn't in production yet, and something went wrong during the initial installation).

Hi guys, i cant actually remember why i was trying to remove it now...something wasnt working and i think i had made so many changes to modules trying to get it working i decided to start again. However, rather than delete an entire google cloud instance, i thought perhaps i would just remove and reinstall virtualmin.

I ended up deleting the GCI and launching a new one. The usual newbie problem...too much tinkering without really knowing how it works first.

BTW, in my current setup...

  1. hosting server (virtualmin Pro+webmin)
  2. ns1 (virtualmingpl+webmin)
  3. ns2 (webmin)

Is there really any need to keep virtualmin gpl on ns1? (can i just remove it and run webmin only)