Upgrading - From Fog 1.2.0 to Trunk - Possible?
-
Ubuntu 16 works just fine. There are literally only two extra tiny steps.
-
Well, turns out that our Fog main server is using Ubuntu 12.04. I ran the install per instructions in the below link and all goes well until the last line “Installing package: libapache2-mod-php5…Failed!”
I researched this some earlier today after it happened to my test server but was unable to resolve.
After this, the web page no longer displays and is broken.
-
@Wayne-Workman said in Upgrading - From Fog 1.2.0 to Trunk - Possible?:
Ubuntu 16 works just fine. There are literally only two extra tiny steps.
Wayne,
Did you have trouble with the package libapache2-mod-php5 installing with your Ubuntu?
-
@Motech09 Ubuntu 16 requires php 7. Instructions on the two additional steps are here:
https://forums.fogproject.org/topic/7131/fog-on-ubuntu-16-04-php7/26If you’ve attempted to run the installer without those using Ubuntu 16 and FOG Trunk, you’ll need to purge all php packages with
sudo apt-get purge php5* lib*php* -yq
as Tom says in that thread, then delete the/opt/fog/.fogsettings
file and give it another go per those instructions. -
@Motech09 said in Upgrading - From Fog 1.2.0 to Trunk - Possible?:
Well, turns out that our Fog main server is using Ubuntu 12.04. I ran the install per instructions in the below link and all goes well until the last line “Installing package: libapache2-mod-php5…Failed!”
What happens when you key in
sudo apt-get install libapache2-mod-php5
from the command line? Do you get an error, if so what? -
The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: apache2-api-20120211 but it is not installable
Depends: apache2 (>= 2.4)
E: Unable to correct problems, you have held broken packages. -
Why delete the .fogsettings file?
-
What if you run:
sudo rm -rf /etc/php* sudo rm -rf /etc/apache2* sudo apt-get purge lib*php* apache2
-
@Motech09 said in Upgrading - From Fog 1.2.0 to Trunk - Possible?:
Why delete the .fogsettings file?
If it is existing already, it’ll have php5 packages defined - which will not work on Ubuntu 16. Deleting it (or renaming it to
.fogsettings.old
) will cause the installer to re-write the file, and using the commands I pointed to earlier will cause it to write php 7 values in the file. -
That makes sense but It’s not Ubuntu 16 though, it is Ubuntu 12.04. Does that make a difference?
Thanks for your assistance.
-
@Motech09 It does make a difference. So in that case, you just need to get php 5 working.
Many folks have said FOG Trunk works on Ubuntu 12, but I don’t have experience with that.
But, I’d suggest building a new server using Ubuntu 16 if you want to run trunk, only because it’ll have a far longer support lifespan.
-
@Motech09 To check for held broken packages do
dpkg --get-selections | grep hold
Then remove the installed packages.
-
I totally agree and might just end up doing that. I think I am going to attempt to upgrade the kernel for these new Dell laptops just to get the imaging going and then circle back with the trunk upgrade later.
-
I got the same result, Tom.
-
Guys,
I went ahead and pulled down the 4.1 kernel and tossed it at the E5570 for now and it is working (can’t afford to spin wheels too long since people are waiting to image these laptops) which is great but I do plan on upgrading Ubuntu from 12.04 to 16 and then Fog over to Trunk version.
Strangely, when trying to download the 4.1 kernel and save it as the default it would never work so I had to rename it to E5570 then it downloaded and worked — that’s odd.
Anyways, thanks for the help everyone! Knowledge is power.
-
@Motech09 I would very strongly dis-advise “upgrading”. Do a clean install of 16 - either on the existing box, or on a new box.