Upgrade Woes - Latest SVN
-
Was on SNV 5779
Ubuntu 14.04 LTS ServerTrying to upgrade to the latest SVN from SVN 5779
Install fails on installing php-gettext and bumps back to the bash prompt, I found a couple posts on earlier version about removing the php directory and doing a couple apt-get autoremove --purge commands but it doesn’t look like that will do it in my instance. Does anyone have any ideas what could be causing it? is there a log I could check?
-
So I am not really sure what I did, it was some combination of commands but it let me install it just fine… I’ll take it.
This can be marked as solved I guess!
-
what happens when you try to install that manually?
apt-get install php-gettext -y
Also, what if you try 7.0 or 7.1 version?
apt-get install php7.0-gettext -y
apt-get install php7.1-gettext -y
It may not even be needed honestly. Perhaps if you modify the
packages=
line inside of/opt/fog/.fogsettings
then the installer may not try installing it, and you’ll be fine? It’s been a while since I’ve tested Ubuntu 14. I suppose since so many people are still on it, I ought to add it to the distro checks.Another thing to try is completely entirely removing the whole
packates=
line inside of/opt/fog/.fogsettings
and then trying again.Let us know how it goes.
-
I haven’t tried modifying the .fogsettings file just yet, The error I get when I try to install individually I get
The Following packages have unmet dependencies: libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or apache2-mpm-itk but it is not going to be installed Depends: apache2.2-common but it is not going to be installed
Edit: put in code box
-
Tried a Apt-get -f install and I got this
root@SAU-FOG:~/fogproject/bin# apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following package was automatically installed and is no longer required: apache2-data Use 'apt-get autoremove' to remove them. The following extra packages will be installed: apache2-mpm-prefork apache2.2-bin apache2.2-common Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom The following NEW packages will be installed: apache2-mpm-prefork apache2.2-bin apache2.2-common 0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded. 5 not fully installed or removed. Need to get 0 B/1,575 kB of archives. After this operation, 4,568 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 60074 files and directories currently installed.) Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb (--unpack): trying to overwrite '/usr/lib/apache2/modules/mod_authnz_ldap.so', which is also in package apache2-bin 2.4.23-5.0+deb.sury.org~precise+2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb (--unpack): trying to overwrite '/usr/share/apache2/default-site/index.html', which is also in package apache2-data 2.4.23-5.0+deb.sury.org~precise+2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-1ubuntu1.11_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/apache2-mpm-prefork_2.2.22-1ubuntu1.11_amd64.deb (--unpack): trying to overwrite '/usr/sbin/apache2', which is also in package apache2-bin 2.4.23-5.0+deb.sury.org~precise+2 Processing triggers for ureadahead ... Processing triggers for ufw ... Errors were encountered while processing: /var/cache/apt/archives/apache2.2-bin_2.2.22-1ubuntu1.11_amd64.deb /var/cache/apt/archives/apache2.2-common_2.2.22-1ubuntu1.11_amd64.deb /var/cache/apt/archives/apache2-mpm-prefork_2.2.22-1ubuntu1.11_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Looks like Broken Pipe issue? Not really sure where to go from there? Could be a bad repository?
-
@Arsenal101 Please try:
sudo apt-get clean && sudo apt-get update && sudo apt-get dist-upgrade -yq
-
Hey @Tom-Elliott
Looks like it fails on the last command with the same error
The following packages have unmet dependencies: libapache2-mod-php5 : Depends: apache2-mpm-prefork (> 2.0.52) but it is not installed or apache2-mpm-itk but it is not installed Depends: apache2.2-common but it is not installed E: Unmet dependencies. Try using -f.
-
@Arsenal101 Please do:
Edit the
/opt/fog/.fogsettings
file.Remove
php_ver, php_verAdds, and packages
lines.Run:
sudo rm -rf /etc/{apache,php}* sudo rm -rf /etc/apt/sources.list.d/*ondrej* sudo apt-get purge -fyq libapache*php* apache2* php5* php7*
Then retry the installer.
-
Tried the first time, Copy and pasted your text, got an error on the last one but disreguarded it, re-ran the installer still got an error, then realized you probably meant to have a space between libapache* and php* so I added that in and cleared the error on that command, Re-ran the installer and it looks like it’s still trying to install all the packages, I thought taking the packages line out would clear that.
Still errors out on php-gettext
-
Just for your viewing pleasure
+------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 1.3.0-RC-30 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Debian based Installation *** Detected a potential need to reinstall apache and php files. *** This will remove the /etc/php* and /etc/apache2* directories *** and remove/purge the apache and php files from this system. *** If you're okay with this please type Y, anything else will *** break the installation and you will have to remove the files yourself *** and make proper changes as necessary. (Y/N): Y * Removing apache and php files...............................Done * Stopping web services.......................................Failed * Removing the apache and php packages........................Done * Resetting our variables to specify php version 7.1..........Done ###################################################################### # FOG now has everything it needs for this setup, but please # # understand that this script will overwrite any setting you may # # have setup for services like DHCP, apache, pxe, tftp, and NFS. # ###################################################################### # It is not recommended that you install this on a production system # # as this script modifies many of your system settings. # ###################################################################### # This script should be run by the root user. # # It will prepend the running with sudo if root is not set # ###################################################################### # ** Notice ** FOG is difficult to setup securely # # SELinux and IPTables are usually asked to be disabled # # There have been strides in adding capabilities # # The recommendations would now be more appropriate # # to set SELinux to permissive and to disable firewall for now. # # You can find some methods to enable SELinux and maintain firewall # # settings and ports. If you feel comfortable doing so please do # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Debian * Detected Linux Distribution: Ubuntu * Server IP Address: 10.1.0.134 * Server Subnet Mask: 255.255.0.0 * Interface: eth0 * Installation Type: Normal Server * Donate: 0 * Internationalization: * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. 10.1.0.134) * Option 067/filename is the bootfile: (e.g. undionly.kpxe) * 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 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa vsftpd wget xinetd zlib1g * Installing package: apache2.................................OK * Skipping package: bc........................................(Already Installed) * Skipping package: build-essential...........................(Already Installed) * Skipping package: cpp.......................................(Already Installed) * Skipping package: curl......................................(Already Installed) * Skipping package: g++.......................................(Already Installed) * Skipping package: gawk......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: htmldoc...................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Installing package: libapache2-mod-php7.1...................OK * Skipping package: libc6.....................................(Already Installed) * Skipping package: libcurl3..................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: mysql-client..............................(Already Installed) * Skipping package: mysql-server..............................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: nfs-kernel-server.........................(Already Installed) * Skipping package: openssh-server............................(Already Installed) * Installing package: php7.1..................................OK * Installing package: php7.1-bcmath...........................OK * Skipping package: php7.1-cli................................(Already Installed) * Installing package: php7.1-curl.............................OK * Installing package: php7.1-fpm..............................OK * Installing package: php7.1-gd...............................OK * Skipping package: php7.1-json...............................(Already Installed) * Installing package: php7.1-ldap.............................OK * Installing package: php7.1-mbstring.........................OK * Installing package: php7.1-mcrypt...........................OK * Installing package: php7.1-mysql............................OK * Skipping package: php7.1-mysql..............................(Already Installed) * Installing package: php-gettext.............................Failed!
-
@Arsenal101 What happens if you try:
apt-get install php-gettext
-
I get the same libmodapache dependency error, I was able to clear up the dependency errors at one point but I think the installer goes through and removes the PHP and apache packages when it install and breaks it again
-
@Arsenal101 Can you try:
apt-get purge -fyq libapache2-mod-php*
-
Sure, After I ran that I was able to install php-gettext no troubles
-
is there anyways that the installer will skip the php and apache packages if they are already installed? I noticed it removes them as one of the first steps
-
@Arsenal101 Now add:
php_ver="7.1" php_verAdds="-7.1" packages="apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa vsftpd wget xinetd zlib1g"
To your /opt/fog/.fogsettings file please.
-
@Arsenal101 It only removes them if the php_ver/php_verAdds variables are not specified (which was what I was trying to get to happen when I asked you to remove those items earlier)
-
Gotcha, I did notice it said “setting variables for php” or something along those lines.
-
Making Progress! got all the way to backing up database and then it failed…
-
@Arsenal101 WHat’s the apache error logs show?
-
I don’t see any thing in there… I see the access.log and error.log but when I pico into them or Tail they don’t show anythting