problem updating to trunk. Stopping web service......failed!
-
I appreciate the quick response. I really want to get this back running today.
the autoremove command somewhat failed (see output below).
I was able to remvove the /etc/php5 folder.
When i tried to reinstall FOG, it failed at installing php5 again.ubuntu@CSN-06:~/downloads/fog/trunk/bin$ sudo apt-get autoremove --purge Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libapache2-mod-php5 : Depends: php5-common (= 5.6.16+dfsg-4+deb.sury.org~trusty+1) but it is not installed Depends: php5-cli but it is not installed Depends: php5-json but it is not installed E: Unmet dependencies. Try using -f.
Mod edited to use code box.
-
@Tom-Elliott
so as it told me, I did ‘apt-get -f install’ and it updated some stuff
then i reran the FOG installer. Now it fails at libapache-mod-php5:Here are the settings FOG will use: Base Linux: Debian Detected Linux Distribution: Ubuntu Server IP Address: 192.168.1.1 Interface: eth1 Installation Type: Normal Server Donate: 0 Internationalization: 0 Image Storage Location: /images Using FOG DHCP: Yes DHCP router Address: DHCP DNS Address: * Are you sure you wish to continue (Y/N) y Installation Started Installing required packages, if this fails make sure you have an active internet connection. * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client isc-dhcp-server tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5 * Skipping package: apache2...................................(Already Installed) * Installing package: php5....................................OK * Skipping package: php5-json.................................(Already Installed) * Installing package: php5-gd.................................OK * Skipping package: php5-cli..................................(Already Installed) * Installing package: php5-curl...............................OK * Skipping package: mysql-server..............................(Already Installed) * Skipping package: mysql-client..............................(Already Installed) * Skipping package: isc-dhcp-server...........................(Already Installed) * Skipping package: tftpd-hpa.................................(Already Installed) * Skipping package: tftp-hpa..................................(Already Installed) * Skipping package: nfs-kernel-server.........................(Already Installed) * Skipping package: vsftpd....................................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: wget......................................(Already Installed) * Skipping package: xinetd....................................(Already Installed) * Skipping package: sysv-rc-conf..............................(Already Installed) * Skipping package: tar.......................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: build-essential...........................(Already Installed) * Skipping package: cpp.......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: g++.......................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: htmldoc...................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Skipping package: openssh-server............................(Already Installed) * Installing package: php-gettext.............................OK * Installing package: php5-mcrypt.............................OK * Installing package: php5-mysqlnd............................OK * Skipping package: curl......................................(Already Installed) * Skipping package: libc6.....................................(Already Installed) * Skipping package: libcurl3..................................(Already Installed) * Skipping package: zlib1g....................................(Already Installed) * Installing package: php5-fpm................................OK * Installing package: libapache2-mod-php5.....................OK * Updating packages as needed.................................OK Confirming package installation. * Checking package: apache2...................................OK * Checking package: php5......................................OK * Checking package: php5-json.................................OK * Checking package: php5-gd...................................OK * Checking package: php5-cli..................................OK * Checking package: php5-curl.................................OK * Checking package: mysql-server..............................OK * Checking package: mysql-client..............................OK * Checking package: isc-dhcp-server...........................OK * Checking package: tftpd-hpa.................................OK * Checking package: tftp-hpa..................................OK * Checking package: nfs-kernel-server.........................OK * Checking package: vsftpd....................................OK * Checking package: net-tools.................................OK * Checking package: wget......................................OK * Checking package: xinetd....................................OK * Checking package: sysv-rc-conf..............................OK * Checking package: tar.......................................OK * Checking package: gzip......................................OK * Checking package: build-essential...........................OK * Checking package: cpp.......................................OK * Checking package: gcc.......................................OK * Checking package: g++.......................................OK * Checking package: m4........................................OK * Checking package: htmldoc...................................OK * Checking package: lftp......................................OK * Checking package: openssh-server............................OK * Checking package: php-gettext...............................OK * Checking package: php5-mcrypt...............................OK * Checking package: php5-mysqlnd..............................OK * Checking package: curl......................................OK * Checking package: libc6.....................................OK * Checking package: libcurl3..................................OK * Checking package: zlib1g....................................OK * Checking package: php5-fpm..................................OK * Checking package: libapache2-mod-php5.......................Failed! ubuntu@CSN-06:~/downloads/fog/trunk/bin$
Mod edited to use code box.
-
Maybe try the commands Tom suggested again? I did them out of order on accident since I was having the same problem and it worked for me.
sudo apt-get autoremove --purge sudo rm -rf /etc/php5 sudo rm -rf /etc/apt-get/sources.d/*ondrej* sudo apt-get purge php5* sudo apt-get autoremove --purge
Then I reran the installer and all was well with the world. Maybe trying it again is worth a shot
-
@Arrowhead-IT
thanks I just tried several rounds of apt-get with autoremove, autoclean, purge, etc. Apt-get seems to be OK now.
I don’t know what is up… Fog install keeps failing at libapache2-mod-php5. -
@templink Can you check your chat, are you able to tv?
-
@templink When you’re posting large chunks of code to the forums, please use the code box feature. It looks like in the pic below, it’s located just above the editing window. Highlight your code and then click the code box feature and it will wrap your code for you.
-
@Wayne-Workman
awesome thanks -
I’m assuming it’s safe to solve this now?
-
yes solved
-
@templink Sure would be nice to know what the solution was?
-
@Arrowhead-IT said:
Maybe try the commands Tom suggested again? I did them out of order on accident since I was having the same problem and it worked for me.
sudo apt-get autoremove --purge sudo rm -rf /etc/php5 sudo rm -rf /etc/apt-get/sources.d/*ondrej* sudo apt-get purge php5* sudo apt-get autoremove --purge
Then I reran the installer and all was well with the world. Maybe trying it again is worth a shot
More or less, the steps above are what the fix was. There was some minor variance but this was what got it to operate.
If I recall, your particular issue was the server was unable to add another repository.
-
@Tom-Elliott @ManofValor
I’ve had this problem on a few of the trunks in the last week. So I’ve just put those commands into a bandaid fix type script and it works everytime it happens, like this morning for example. Said script is just the same commands with some echo’s and -y for automation, looks like this…#!/bin/bash echo "running autoremove to clean up apt..." sudo apt-get autoremove --purge -y echo "removing php files..." sudo rm -rf /etc/php5 echo "removing ondrej sources from apt..." sudo rm -rf /etc/apt-get/sources.d/*ondrej* echo "uninstalling php5..." sudo apt-get purge php5* -y echo "cleaning up apt..." sudo apt-get autoremove --purge -y exit
Do we have any idea what is causing this or should I just add those commands to my update script reinstall php over and over and just not worry about it? Granted it doesn’t happen with every trunk, maybe 3 of them in the last week.
I wonder if it’s specific to a linux distro? I am running Ubuntu Server 14.04
@templink What version of Ubuntu are you running?
@ManofValor Assuming you’re having this problem too, what linux distro are you running? -
@Arrowhead-IT Why not just add them to the installer for Ubuntu ?
-
@Wayne-Workman That would work, but I feel like it’s kind of a bandaid to the issue rather than a real fix. We didn’t have to reinstall php for every fog update before, why do we suddenly need to do it now? Granted I do like the idea of contributing something to the official fog code, even if it does get taken out later…
-
@Arrowhead-IT said:
even if it does get taken out later
It’s fine if it gets taken out later. But having something that works is better than nothing at all. The @Developers can fix it the proper way when they have time.
-
@Tom-Elliott Yeah i got through that. it was a firewall issue. i did the steps above but now getting:
- Installing package: php5…Failed!
so I ran:
sudo -E add-apt-repository ppa:ondrej/php5-5.6
and got:
This branch follows latest PHP 5.6 packages as maintained by me & rest of the Debian pkg-php team.
You can get more information about the packages at https://sury.org
For PHP 5.5 use: ppa:ondrej/php5
For PHP 5.4 use: ppa:ondrej/php5-oldstableBUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/pages/bugreporting.html
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html
WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
apt-get install -y language-pack-en-base
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php5-5.6
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6
Press [ENTER] to continue or ctrl-c to cancel adding itgpg: keyring
/tmp/tmpshpbmela/secring.gpg' created gpg: keyring
/tmp/tmpshpbmela/pubring.gpg’ created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpshpbmela/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key “Launchpad PPA for Ondřej Surý” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)I also ran the updater
-
@Arrowhead-IT
“What version of Ubuntu are you running?”
Ubuntu 14.04 LTS