Page 1 of 1

New install is old version and fails to upgrade

Posted: 12 May 2014, 21:33
by lannait
Hi,

Weird bug to report. This is from a csf download around 4 days ago. Fresh install of Ubuntu 12.04LTS. Virtualmin/Webmin control panel. The reported csf version upon csf installation is 6.48. Upgrader reports 7.03 is available.

When clicking upgrade, it runs through the upgrade sequence (sucessfully downloads replacemebt package apparently) and reports success. however, when returning to the csf main screen, it's still on 6.48 and reporting 7.03 is available.

One thing I noted was that the upgrader reported the following. I don't know if it's significant to this but. . .

mkdir: cannot create directory `/etc/csf': File exists
mkdir: cannot create directory `/var/lib/csf': File exists
mkdir: cannot create directory `/var/lib/csf/backup': File exists
mkdir: cannot create directory `/var/lib/csf/Geo': File exists
mkdir: cannot create directory `/var/lib/csf/ui': File exists
mkdir: cannot create directory `/var/lib/csf/stats': File exists
mkdir: cannot create directory `/var/lib/csf/lock': File exists
mkdir: cannot create directory `/var/lib/csf/webmin': File exists
mkdir: cannot create directory `/var/lib/csf/zone': File exists
mkdir: cannot create directory `/usr/local/csf': File exists
mkdir: cannot create directory `/usr/local/csf/bin': File exists
mkdir: cannot create directory `/usr/local/csf/lib': File exists
mkdir: cannot create directory `/usr/local/csf/tpl': File exists

Perhaps you can advise me?

Re: New install is old version and fails to upgrade

Posted: 13 May 2014, 08:29
by ForumAdmin
Remove any files you have in /usr/src/csf* and then, from the root shell:

Code: Select all

csf -u

Re: New install is old version and fails to upgrade

Posted: 13 May 2014, 08:56
by lannait
Hi,

Thanks for your advice. Unfortunately it still doesn't work. There was also no csf directory in /usr/src in the first place.

I ran csf -u by logging in as a sudoer and changing to root with sudo -i

Re: New install is old version and fails to upgrade

Posted: 13 May 2014, 10:26
by ForumAdmin
Seems like you have a local caching issue, then. I can only suggest that you do the update manually by running through the install procedure:
http://configserver.com/free/csf/install.txt

Re: New install is old version and fails to upgrade

Posted: 13 May 2014, 12:20
by lannait
Thanks, this turned out to be a combination of ISP caching (I think) where I was downloading an old version of csf. I used a VPN to get to the configserver website and downloaded 7.03 to my desktop, then moved it to the server.

It was also a permissions issue. using sudo somehow didn't work properly. I set up a password for root, installed csf, then disabled the root account again. All now appears to be good.

Thanks.