Adding needed repository Failed!
-
@x23piracy Looks like they merged PHP 5.5 5.6 and 7.0 into one PPA. Also, you might want to run
sudo apt-get autoremove
and check free space in your boot partition (it seems to be full maybe?)
@Senior-Developers looks like the ubuntu script needs to be updated.
-
@Quazz said in Adding needed repository Failed!:
@x23piracy Looks like they merged PHP 5.5 5.6 and 7.0 into one PPA.
@Senior-Developers looks like the ubuntu script needs to be updated.
Will try, i get back.
-
@x23piracy Any reason you’re using PHP 5.6 over 7? It might work with 7 out of the box since it’s in the official ubuntu repository.
The boot partition thing isn’t necessarily critical right now, although it will prohibit kernel upgrades. You’ll need to remove a few older kernels probably.
Looking over the code, seems a pretty easy fix, though.
Go to lib/ubuntu/config.sh in your git fog folder and edit the following line
[[ $php_ver != 5 ]] && repo="php" || repo="php${php_ver}${php_verAdds}"
to
[[ $php_ver != 5 ]] && repo="php" || repo="php"
or
repo="php"
I have not tested this and I do not recommend doing this on a system that isn’t Ubuntu 16.04
-
@Quazz said in Adding needed repository Failed!:
@x23piracy Any reason you’re using PHP 5.6 over 7? It might work with 7 out of the box since it’s in the official ubuntu repository.
i did nothing else then installing that ubuntu 14 server und started using fog, i’ve not done something special with php. I don’t know whats happening. I had some different problem with an older ubuntu server, i start going to hate ubuntu because they switching repositories after some time and if you do nothing your lost after some time because the pakages are struggeled.
I really have no idea what will be the right thing to do now.
I have created a snapshot and can start experimenting with the server, what should i do first?
-
@x23piracy Interesting, so this isn’t just on Ubuntu 16.04?
I recommend trying to change to config of the installer as noted in my other comment and trying again. Hopefully only the repo name changed and not also a ton of package names because then you’ll have to wait I’m afraid.
-
@Quazz no need to edit installer files.
Remove php and libapache2-mod-php
Edit fogsettings remove packages from file.
Change php_ver to 7.0
Change php_verAdd to -7.0
Run installer
-
@Tom-Elliott said in Adding needed repository Failed!:
@Quazz no need to edit installer files.
Remove php and libapache2-mod-php
Edit fogsettings remove packages from file.
Change php_ver to 7.0
Change php_verAdd to -7.0
Run installer
Sorry but i don’t know howto to do this.
-
Hi,
i have done a release upgrade to 16.04.1 but same error, adding repositorys failed. F**** monday
-
I’m using ubuntu 14.04.05:
if I change the php_ver and php_verAdd I get this error later in the update-process:* Setting up Apache and PHP files.............................Failed ########################################### # # # PHP Failed to install properly # # # ########################################### Could not find /etc/php/7/apache2/php.ini!
-
Here is the error log after upgrading to ubuntu 16:
/usr/bin/lsb_release /bin/systemctl /opt/fog/.fogsettings Paketlisten werden gelesen... Abhängigkeitsbaum wird aufgebaut.... Statusinformationen werden eingelesen.... »software-properties-common« ist bereits die neuste Version (0.96.20.4). »python-software-properties« ist bereits die neuste Version (0.96.20.4). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. 7 Nov 12:01:31 ntpdate[2476]: no server suitable for synchronization found Cannot add PPA: 'ppa:~ondrej/ubuntu/php5-5.6'. The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6' Please choose from the following available PPAs: * 'apache2': PPA for Apache 2.x * 'apache2-qa': PPA for Apache2 (QA builds; experimental) * 'autotools': PPA for autotools (not-supported; build-dependency; experimental) * 'bind9': PPA for BIND 9 * 'cmake': PPA for CMake (not-supported, experimental) * 'common': Common PPA packages * 'courier': PPA for Courier MTA * 'cyrus-imapd': PPA for Cyrus IMAP * 'debhelper': PPA for Debhelper (and friends) * 'golang': PPA for Go (experimental, build-dependency) * 'llvm': PPA for LLVM * 'mariadb-10.0': PPA for MariaDB 10.0 * 'mysql-5.5': PPA for MySQL 5.5 * 'mysql-5.6': PPA for MySQL 5.6 * 'mysql-5.7': PPA for MySQL 5.7 * 'nginx': PPA for NGINX with HTTP/2 on Ubuntu 12.04 LTS and higher * 'nginx-mainline': PPA for NGINX Mainline with HTTP/2 on Ubuntu 12.04 LTS and higher * 'pelican': PPA for Pelican * 'php': ***** The main PPA for PHP (5.5, 5.6, 7.0) with many PECL extensions ***** * 'php-qa': PPA for PHP (QA builds; experimental) * 'php-zts': PPA for PHP ZTS (experimental, unsupported) * 'php5-compat': PPA with dummy compatibility php5* packages * 'php5-oldstable': PPA for PHP 5.4 (unsupported, vulnerable) * 'pkg-dpkg': dpkg and friends (very experimental) * 'pkg-gearman': PPA for Gearman * 'pkg-nlnetlabs': NLNetLabs Backported Packages * 'postfix+dane': PPA for Postfix with DANE support * 'ppa': PPA for Ondřej Surý * 'sandbox': Sandbox for preparation of various packages (DON'T USE) * 'seafile': PPA for Seafile * 'zonemaster': PPA for Zonemaster OK:1 http://de.archive.ubuntu.com/ubuntu xenial InRelease OK:2 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease OK:3 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease OK:4 http://security.ubuntu.com/ubuntu xenial-security InRelease Paketlisten werden gelesen... Paketlisten werden gelesen... Abhängigkeitsbaum wird aufgebaut.... Statusinformationen werden eingelesen.... »ntpdate« ist bereits die neuste Version (1:4.2.8p4+dfsg-3ubuntu5.3). »python-software-properties« ist bereits die neuste Version (0.96.20.4). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. 7 Nov 12:01:46 ntpdate[2659]: no server suitable for synchronization found Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. Cannot add PPA: 'ppa:~ondrej/ubuntu/php5-5.6'. The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6' Please choose from the following available PPAs: * 'apache2': PPA for Apache 2.x * 'apache2-qa': PPA for Apache2 (QA builds; experimental) * 'autotools': PPA for autotools (not-supported; build-dependency; experimental) * 'bind9': PPA for BIND 9 * 'cmake': PPA for CMake (not-supported, experimental) * 'common': Common PPA packages * 'courier': PPA for Courier MTA * 'cyrus-imapd': PPA for Cyrus IMAP * 'debhelper': PPA for Debhelper (and friends) * 'golang': PPA for Go (experimental, build-dependency) * 'llvm': PPA for LLVM * 'mariadb-10.0': PPA for MariaDB 10.0 * 'mysql-5.5': PPA for MySQL 5.5 * 'mysql-5.6': PPA for MySQL 5.6 * 'mysql-5.7': PPA for MySQL 5.7 * 'nginx': PPA for NGINX with HTTP/2 on Ubuntu 12.04 LTS and higher * 'nginx-mainline': PPA for NGINX Mainline with HTTP/2 on Ubuntu 12.04 LTS and higher * 'pelican': PPA for Pelican * 'php': ***** The main PPA for PHP (5.5, 5.6, 7.0) with many PECL extensions ***** * 'php-qa': PPA for PHP (QA builds; experimental) * 'php-zts': PPA for PHP ZTS (experimental, unsupported) * 'php5-compat': PPA with dummy compatibility php5* packages * 'php5-oldstable': PPA for PHP 5.4 (unsupported, vulnerable) * 'pkg-dpkg': dpkg and friends (very experimental) * 'pkg-gearman': PPA for Gearman * 'pkg-nlnetlabs': NLNetLabs Backported Packages * 'postfix+dane': PPA for Postfix with DANE support * 'ppa': PPA for Ondřej Surý * 'sandbox': Sandbox for preparation of various packages (DON'T USE) * 'seafile': PPA for Seafile * 'zonemaster': PPA for Zonemaster OK:1 http://security.ubuntu.com/ubuntu xenial-security InRelease OK:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease OK:3 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease OK:4 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease Paketlisten werden gelesen... Paketlisten werden gelesen... Abhängigkeitsbaum wird aufgebaut.... Statusinformationen werden eingelesen.... »ntpdate« ist bereits die neuste Version (1:4.2.8p4+dfsg-3ubuntu5.3). »software-properties-common« ist bereits die neuste Version (0.96.20.4). »python-software-properties« ist bereits die neuste Version (0.96.20.4). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. 7 Nov 12:02:02 ntpdate[2863]: no server suitable for synchronization found Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. Cannot add PPA: 'ppa:~ondrej/ubuntu/php5-5.6'. The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6' Please choose from the following available PPAs: * 'apache2': PPA for Apache 2.x * 'apache2-qa': PPA for Apache2 (QA builds; experimental) * 'autotools': PPA for autotools (not-supported; build-dependency; experimental) * 'bind9': PPA for BIND 9 * 'cmake': PPA for CMake (not-supported, experimental) * 'common': Common PPA packages * 'courier': PPA for Courier MTA * 'cyrus-imapd': PPA for Cyrus IMAP * 'debhelper': PPA for Debhelper (and friends) * 'golang': PPA for Go (experimental, build-dependency) * 'llvm': PPA for LLVM * 'mariadb-10.0': PPA for MariaDB 10.0 * 'mysql-5.5': PPA for MySQL 5.5 * 'mysql-5.6': PPA for MySQL 5.6 * 'mysql-5.7': PPA for MySQL 5.7 * 'nginx': PPA for NGINX with HTTP/2 on Ubuntu 12.04 LTS and higher * 'nginx-mainline': PPA for NGINX Mainline with HTTP/2 on Ubuntu 12.04 LTS and higher * 'pelican': PPA for Pelican * 'php': ***** The main PPA for PHP (5.5, 5.6, 7.0) with many PECL extensions ***** * 'php-qa': PPA for PHP (QA builds; experimental) * 'php-zts': PPA for PHP ZTS (experimental, unsupported) * 'php5-compat': PPA with dummy compatibility php5* packages * 'php5-oldstable': PPA for PHP 5.4 (unsupported, vulnerable) * 'pkg-dpkg': dpkg and friends (very experimental) * 'pkg-gearman': PPA for Gearman * 'pkg-nlnetlabs': NLNetLabs Backported Packages * 'postfix+dane': PPA for Postfix with DANE support * 'ppa': PPA for Ondřej Surý * 'sandbox': Sandbox for preparation of various packages (DON'T USE) * 'seafile': PPA for Seafile * 'zonemaster': PPA for Zonemaster
i revert back to my backup with ubuntu 14 again, @Tom-Elliott can you help me with the php stuff please?
-
@Oleg From the looks of that, you used php_ver=7 not php_ver=‘7.0’ (am I correct?)
-
As the repo has changed, I’ve updated the code base to not try using the php5-5_6 repo anymore. It will delete all ondrej and reinstall the ppa using only php as the repo.
Hopefully this will be put to rest then?
-
This is re-released as RC-20. Please repull/svn up and install and hopefully this will be fixed for you. My testing appears it is working.
-
@Tom-Elliott
hey the php_ver was 7 and not 7.0 so now it looks like this:php_ver='7.0' php_verAdds='-7.0'
and I re-updated, ran the installer and in the error file is this:
... mysql stop/waiting mysql start/running, process 18850 * Stopping web server apache2 * php7.0-fpm: unrecognized service
-
@Oleg Did you remove the packages line from the
/opt/fog/.fogsettings
file? -
for me the problem is solved, @Tom-Elliott made adjustments regarding to the repo changes from ondrej.
thank you Mr. Magic.“as quazz pointed out, ondrej merged the php, php5_5-6, and php7_7.0 repos into one repo”
Regards X23
-
@Tom-Elliott
what should I do with them? let them inside or delete?
If I delete them, the installer runs until the end but I get this while the installer is running:* Comparing checksums of kernels and inits....................Done PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mbstring.so' - /usr/lib/php/20151012/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mbstring.so' - /usr/lib/php/20151012/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
after installing php-mbstring this error is gone.
After first check I found that the Menu “iPXE Menu Configuration” is for me not available. I get the message on the top:
“ID Must be set to edit”
I removed everything before installing this version, so it’s like a fresh install in my opinion.
-
@Oleg It appears to be a bug in RC20, seeing it on Centos 7 too. The FOG menu thingy that is.
-
@Quazz @Tom-Elliott
should someone open a new thread for this new issue?
The problem with the installer.sh is fixed for me too. -
@Oleg All fixed and repubbed.