Unable to install php7.2-curl on Ubuntu 16.04 - php

I’m currently running Ubuntu 16.04 and I try to install php7.2-curl.
I running :
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-curl
Result :
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2-curl
E: Couldn't find any package by glob 'php7.2-curl'
E: Couldn't find any package by regex 'php7.2-curl'
My php -v :
PHP 7.2.12-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 12 2018 09:55:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.12-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
My /etc/apt/sources.list :
deb http://mirrors.digitalocean.com/ubuntu xenial main restricted
deb-src http://mirrors.digitalocean.com/ubuntu xenial main restricted
deb http://mirrors.digitalocean.com/ubuntu xenial-updates main restricted
deb-src http://mirrors.digitalocean.com/ubuntu xenial-updates main restricted
deb http://mirrors.digitalocean.com/ubuntu xenial universe
deb-src http://mirrors.digitalocean.com/ubuntu xenial universe
deb http://mirrors.digitalocean.com/ubuntu xenial-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu xenial-updates universe
deb http://mirrors.digitalocean.com/ubuntu xenial multiverse
deb-src http://mirrors.digitalocean.com/ubuntu xenial multiverse
deb http://mirrors.digitalocean.com/ubuntu xenial-updates multiverse
deb-src http://mirrors.digitalocean.com/ubuntu xenial-updates multiverse
deb http://mirrors.digitalocean.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://mirrors.digitalocean.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
I don’t understand why…

Try to add ondrej/php repository
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-curl

Related

php5-gd broken packages on debian 7.1 wheezy

This is the error that is displayed when trying to install.
root#BH13:# apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-gd : Depends: libt1-5 (>= 5.1.0) but it is not installable
Depends: libvpx1 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
php version.
root#BH13:# php -v
PHP 5.5.38-1~dotdeb+7.1 (cli) (built: Jul 21 2016 18:33:48)
It does not let me install php5-gd to use the php image libraries.
This is in sources.list
deb http://http.debian.net/debian/ squeeze-lts main contrib non-free
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org squeeze all
This was the version of php that I had before updating:
PHP Version 5.4.45-0+deb7u9
and previous sources.list
deb http://ftp.nl.debian.org/debian/ wheezy main
deb-src http://ftp.nl.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
Thanks for the support.

problems install php in debian

I have been tried install php in debian 9 but not working to me.
I did this command:
sudo apt-get -y install php7.0 libapache2-mod-php7.0
Error after it:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-php7.0 : Depends: php7.0-cli but it is not going to be installed
Depends: php7.0-opcache but it is not going to be installed
Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
E: Unable to correct problems, you have held broken packages.
(i tried to install this dependencies but i cant, always it depends to another one)
the /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310$
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310$
deb http://ftp.br.debian.org/debian/ stretch main
deb-src http://ftp.br.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.br.debian.org/debian/ stretch-updates main
deb-src http://ftp.br.debian.org/debian/ stretch-updates main
deb http://http.us.debian.org/debian/ wheezy main contrib non-free
Anyone can help me?
Thanks advance
It seems you've merged in your apt file wheezy and stretch releases of debian. Try removing the last line of your file :
deb http://http.us.debian.org/debian/ wheezy main contrib non-free
and then try an apt-get update command. Then you could try to install php7.
But be aware that if you're starting from an wheezy install, you must upgrade it to stretch before trying to install php7.0

how to install phpmyadmin in ubuntu server

I try to install phpmyadmin in ubuntu server 12.10 , i have try apt-get update then apt-get install phpmyadmin and i have folowing error
apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package phpmyadmin
this my /etc/apt/sources.list view
# deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
#deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://id.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://id.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal universe
deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://id.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://id.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://id.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu quantal partner
# deb-src http://archive.canonical.com/ubuntu quantal partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu quantal main
# deb-src http://extras.ubuntu.com/ubuntu quantal main
any help?
In Linux ( Ubuntu ) first, we need to update and upgrade using the following commands
sudo apt-get update
sudo apt-get upgrade
then you can run the following command to install phpmyadmin
sudo apt-get install phpmyadmin
it will ask username and password for the account
First: ensure the list of available packages is up to date before installing anything new.
sudo apt-get -y update
apt-get -y install phpmyadmin
Second: At the first screen, select apache2 by using the space bar, then hit enter to continue.
At the second screen, which asks “configure the database for phpmyadmin with dbconfig-common?”, select Yes, then hit enter to continue.
At the third screen enter your MySQL password, then hit enter to continue.
Third: Add the following to the bottom of the file "/etc/apache2/apache2.conf":
# phpMyAdmin Configuration
Include /etc/phpmyadmin/apache.conf
save and close the apache.conf file
And, Last :
sudo service apache2 restart
Now it's done.
try with this;
sudo apt-get upgrade
sudo apt-get install phpmyadmin

How to install php5-fpm on Debian

When I try to install php5-fpm I get the following error:
sudo apt-get install php5-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-fpm : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
Depends: php5-common (= 5.4.39-0+deb7u2) but it is not going to be installed
Depends: ucf but it is not going to be installed
Depends: tzdata but it is not going to be installed
PreDepends: dpkg (>= 1.16.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How can I solve this problem?
My /etc/apt/sources.list
deb http://ftp.at.debian.org/debian/ wheezy main
deb-src http://ftp.at.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.at.debian.org/debian/ wheezy-updates main
deb-src http://ftp.at.debian.org/debian/ wheezy-updates main
deb http://http.us.debian.org/debian wheezy contrib non-free main
deb http://pkg.jenkins-ci.org/debian binary/
deb http://ftp.ie.debian.org/debian/ testing main
# Just added following https://www.linode.com/docs/websites/apache/running-fastcgi-php-fpm-on-debian-7-with-apache
deb http://ftp.es.debian.org/debian stable main contrib non-free
deb-src http://ftp.es.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
~

libdb4.6-dev vs libdb4.7-dev

I want to install PHP 5.3 on Ubuntu Intrepid. To install apxs, I need to install libaprutil1-dev, which depends on libdb4.6-dev. When I look at installing that, apt-get wants to remove the currently installed libdb-dev and libdb4.7-dev. Any advice on how to proceed?
[root#server:/usr/local]
#> apt-get -s install libaprutil1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libaprutil1-dev: Depends: libdb4.6-dev but it is not going to be installed
E: Broken packages
[root#server:/usr/local]
#> apt-get -s install libdb4.6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
debhelper libltdl7-dev po-debconf intltool-debian libtool courier-ssl gettext libgdbm-dev libzip1 html2text autotools-dev libmail-sendmail-perl
Use 'apt-get autoremove' to remove them.
Suggested packages:
db4.6-doc
The following packages will be REMOVED:
libdb-dev libdb4.7-dev
The following NEW packages will be installed:
libdb4.6-dev
0 upgraded, 1 newly installed, 2 to remove and 54 not upgraded.
Remv libdb-dev [4.7.25.2ubuntu1]
Remv libdb4.7-dev [4.7.25-3]
Inst libdb4.6-dev (4.6.21-10 Ubuntu:8.10/intrepid)
Conf libdb4.6-dev (4.6.21-10 Ubuntu:8.10/intrepid)
Sounds like people haven't been updating their packages very well. Try adding these lines to /etc/apt/sources.list:
deb http://archive.ubuntu.com/ubuntu lucid universe multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
Then try running sudo apt-get install <package name>/lucid
EDIT: Just noticed you're on intrepid...sorry! This still might work though.

Categories