php5-gd broken packages on debian 7.1 wheezy - php

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.

Related

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

Unable to install PHP zip archive with PHP 7.2

I am running into some issues installing the PHP zip archive and not sure how to fix this. I am running Ubuntu 18 with PHP 7.2
The error I receive in terminal is
The following packages have unmet dependencies.
php7.2-zip : Depends: php7.2-common (= 7.2.5-0ubuntu0.18.04.1) but 7.2.5-
1+ubuntu17.10.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Any help would be appreciated, thanks
I tried changing the repository list with:
http://security.ubuntu.com/ubuntu bionic-security main universe
http://archive.ubuntu.com/ubuntu bionic main restricted universe
But none of them seem to work, but I finally found a repository that works running the following command
add-apt-repository ppa:ondrej/php
And then updating and installing normally the package using apt-get
php7.2-zip Installed
As you can see its installed at last.
On Ubuntu 18.04, this can happen if your missing the "security.ubuntu.com/ubuntu bionic-security main universe" repo.
Add it to your /etc/apt/sources.list, update and then it will install normally.
echo "deb http://security.ubuntu.com/ubuntu bionic-security main universe" >>
/etc/apt/sources.list
apt update
apt install php7.2-zip

PHP 5.6 package for debian-8 (Jessie)

I am writing an ansible script for setting up server in debian 8 , Our existing application is in debian 7 (Wheezy) and the php package is used there is wheezy-php56, The PHP version in the new server is going to be the same. Can I use the same package here ie, wheezy-php56 or is there a jessie-php56 ?
This is the sources.list for Debian 7
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all
What should be sources.list for Debian 8
Debain 8 already contains the package PHP 5.6.7

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