Page 1 of 1

Ubuntu 16.10 Error: apt-get install failed

Posted: Fri Dec 30, 2016 8:51 am
by Konstantinus
Добрый день!
Ставлю на чистую систему 16.10: bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd no --proftpd yes --exim no --dovecot no --spamassassin no --clamav no --named no --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname library.mk.ua --email [email protected]

P.S. С теми же параметрами на 16.04.1 установилась без проблем.

Получаю в ответ:

Package php5-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
E: Package 'php5-common' has no installation candidate
E: Package 'php5-cgi' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Package 'php5-fpm' has no installation candidate
E: Unable to locate package phpMyAdmin
Error: apt-get install failed

Re: Ubuntu 16.10 Error: apt-get install failed

Posted: Fri Dec 30, 2016 4:50 pm
by dpeca
I noticed it too.
16.10 comes with php7.0 packages, and does not contains php5 packages.

In vst-install-ubuntu.sh replace (everywhere) php5 to php7.0 and phpMyAdmin to phpmyadmin
and then run again vst-install-ubuntu.sh

Re: Ubuntu 16.10 Error: apt-get install failed

Posted: Fri Dec 30, 2016 10:06 pm
by Konstantinus
Thank you!
Replace in the script "vst-install.sh"?

Re: Ubuntu 16.10 Error: apt-get install failed

Posted: Sat Dec 31, 2016 1:10 am
by dpeca
No, there is no need to do that.
vst-install.sh is just used to download vst-install-ubuntu.sh (so there is no need to run vst-install.sh again if you already run it - you just need to edit and run vst-install-ubuntu.sh now)

Sorry for english in russian forum :)

Re: Ubuntu 16.10 Error: apt-get install failed

Posted: Sat Feb 25, 2017 1:04 pm
by zebrahosting
If you look at the downloaded UBUNTU installer, it only looks for v 16.04, not 16.10

Easiest way is to first run the installer script. Choose no if asked to continue. (this downloads the Ubuntu install script for you)
Than edit the Ubuntu installer file that has been created and change the 16.04 on top to 16.10 and run this script not the regular installer because it will download a new version, overwriting the modified.

Re: Ubuntu 16.10 Error: apt-get install failed

Posted: Sat Feb 25, 2017 1:45 pm
by dpeca
Or use latest installer from github:

Code: Select all

curl -O https://raw.githubusercontent.com/serghey-rodin/vesta/master/install/vst-install-ubuntu.sh
bash vst-install-ubuntu.sh
We fixed 16.10 issue with php7 and phpmyadmin.