Update libpq5 (>= 9.4~beta3) on Debian Wheezy - linux

I want to upgrade my postgresql version, native 9.1 from debian wheezy to last 9.4 version.
I put the line
deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main
into
/etc/apt/sources.list.d/pgdg.list
then
apt-get update
apt-get upgrade
But when I try to apt-get install postgresql-9.4, I got the following error:
postgresql-9.4 : Depends: postgresql-client-9.4 but it is not going to be installed
So I try to install postgresql-client-9.4 and I got the following error:
postgresql-client-9.4 : Depends: libpq5 (>= 9.4~beta3) but 9.3.5-1.pgdg70+1 is to be installed
And I really don't know how to upgrade libpq5...
Thanks for help

You have to append 9.4 to repository line. From http://www.postgresql.org/about/news/1524 :
If you are using one of the release distributions of Debian or Ubuntu,
add this to your /etc/apt/sources.list.d/pgdg.list to have 9.4
available:
deb http://apt.postgresql.org/pub/repos/apt/ codename-pgdg main 9.4

Related

How to install GCC 5.4 on ubuntu 17.10 (Downgrade)?

I have ubuntu 17.10.
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
I have to get GCC 5.4. I've tried:
sudo apt-get install gcc-5.4
sudo apt-get install gcc-5.4 g++-5.4
But i'm receiving :
E: Unable to locate package gcc-5.4
E: Couldn't find any package by glob 'gcc-5.4'
E: Couldn't find any package by regex 'gcc-5.4'
At apt-get install gcc I receive
gcc is already the newest version (4:7.2.0-1ubuntu1).
I have to downgrade to 5.4,
How can I solve it? Thanks
You can go to the packages.ubuntu.com page for gcc-5 and you will see that eg xenial still has it: https://packages.ubuntu.com/xenial/gcc-5
Now it may just be a matter of adding the xenial repo info back into /etc/sources.list (or maybe /etc/sources.list.d/xenial.conf to easily uncomment later), run apt-get update and apt-get install gcc-5.
Another alternative is to use Docker and just run in a xenial container...
I work it
https://packages.ubuntu.com/bionic/amd64/gcc-5/download
in
/etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu bionic main universe

Broken dependencies while installing GD Library for php5.6 on Linode server Debian 9

I want to install GD Library for php5.6 on Linode Server Debian 9
I run apt-get install php5.6-gd
Output is:
php5.6-gd : Depends: libgd3 (>= 2.1.1) but it is not going to be installed
then I tried to install that package apt-get install libgd3
output is:
libgd3 : Depends: libfontconfig1 (>= 2.11.94) but 2.11.0-6.7+b1 is to be installed
Depends: libjpeg8 (>= 8c) but it is not installable
I tried to install the mentioned version by running command apt-get install libfontconfig1=2.11.94
Output is:
Version '2.11.94' for 'libfontconfig1' was not found
I checked the available versions of libfontconfig1 package by running :
apt-cache policy libfontconfig1
Output is :
libfontconfig1:
Installed: 2.11.0-6.7+b1
Candidate: 2.11.0-6.7+b1
Version table:
2.11.0-6.7+b1 500
500 http://mirrors.linode.com/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
I didn’t find the (>= 2.11.94) version available.
Output of cat /etc/apt/sources.list
# deb http://mirrors.linode.com/debian/ stretch main
deb http://mirrors.linode.com/debian/ stretch main
deb-src http://mirrors.linode.com/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://ftp.de.debian.org/debian stretch main
Output of cat /etc/apt/sources.list.d/*enter image description here
The problem is that http://ppa.launchpad.net/ondrej/php/ubuntu contains conflicting version of libgd3.
vagrant#localhost:~$ sudo apt-cache policy libgd3
libgd3:
Installed: (none)
Candidate: 2.2.5-3+ubuntu16.04.1+deb.sury.org+1
Version table:
2.2.5-3+ubuntu16.04.1+deb.sury.org+1 500
500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
2.2.4-2+deb9u2 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
You need to install version from official repository like next:
vagrant#localhost:~$ sudo apt-get install libgd3=2.2.4-2+deb9u2
I hope this helps.
On debian stretch your /etc/apt/sources.list.d/php.list should contain only the following line :
deb https://packages.sury.org/php/ stretch main
You need to uncomment the above line (remove #) and keep the others ppa disabled (you don't need them).
The dependency problem come from the artuful ppa when enabled. To solve your problem , open the terminal then run the following command:
rm /etc/apt/sources.list.d/*
apt install apt-transport-https lsb-release ca-certificates curl
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
curl https://packages.sury.org/php/apt.gpg | apt-key add -
apt update
apt upgrade
apt dist-upgrade
apt install php5.6
Use the update-alternatives --config php to switch between php version.

install ROS on ubuntu14.04.3, depends errors

when I tried to install ROS in a 64-bit Ubuntu14.04.3 following this document, some problems occurred.
After I configured my Ubuntu repositories to allow "restricted," "universe," and "multiverse,I did this:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116
then I entered:
sudo apt-get install ros-indigo-desktop-full
I got errors:
The following packages have unmet dependencies:
ros-indigo-desktop-full:i386 : Depends: ros-indigo-desktop:i386 but it is not going to be installed
Depends: ros-indigo-perception:i386 but it is not going to be installed
Depends: ros-indigo-simulators:i386 but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
then I tried this to fix the depends:
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
It did not work.
Then I tried this :
sudo apt-get install libsdformat1
Still errors,
I tried this:
sudo apt-get install libgl1-mesa-dev-lts-utopic
I got many errors about i386 like this:
-mesa-dev-lts-utopic:i386 : Depends: mesa-common-dev-lts-utopic:i386 (= 10.3.2-0ubuntu1~trusty2) but it is not going to be installed
Depends: libgl1-mesa-glx-lts-utopic:i386 (= 10.3.2-0ubuntu1~trusty2) but it is not going to be installed
Depends: libdrm-dev:i386 (>= 2.4.52) but it is not going to be installed
Depends: libx11-dev:i386 but it is not going to be installed
Depends: libx11-xcb-dev:i386 but it is not going to be installed
I don't know why I got such errors, beacuse my ubuntu is 64 bit. What can I do next? Thanks.
And my second question is what is the different between ROS Indigo Igloo,ROS Jade Turtle and ROS Kinetic Kame, thanks.
ROS Kinetic Kame (latest), ROS Jade Turtle and ROS Indigo Igloo are different versions/distributions of ROS. Other distributions of ROS are:
ROS Hydro Medusa, ROS Groovy Galapagos, ROS Fuerte Turtle, ROS Electric Emys, ROS Diamondback, ROS C Turtle, ROS Box Turtle.
ROS Indigo is primarily targeted at Ubuntu 14.04 LTS. Indigo supports releasing, documenting and integration testing of catkin-based packages only. Previously, rosbuild-based packages were used which are also supported in ROS Indigo.
ROS jade Turtle is primarily targeted at Ubuntu 15.04 (Ubuntu LTS 14.04 Trusty also supported)
ROS Kinetic Kame is primarily targeted at Ubuntu 16.04 (Xenial) (Ubuntu 15.10 Wily and Debian Jessie also supported)
Now since you're using Ubuntu 14.04.3 64-bit, it is recommended that you install ROS Indigo.
If you're using it on a virtual drive, you can also download a pre-installed ROS distribution in Ubuntu from here.
I would recommend installing the listed dependencies (in the tutorial you are following) :
sudo apt-get install xserver-xorg-dev-lts-utopic
mesa-common-dev-lts-utopic libxatracker-dev-lts-utopic
libopenvg1-mesa-dev-lts-utopic libgles2-mesa-dev-lts-utopic
libgles1-mesa-dev-lts-utopic libgl1-mesa-dev-lts-utopic
libgbm-dev-lts-utopic libegl1-mesa-dev-lts-utopic
That should resolve your issues.

Unable to install libgtk2.0-dev on Raspberry Pi 2

I am trying to install libgtk2.0-dev on my Raspberry Pi 2 running on latest raspbian. When I use the command sudo apt-get install libgtk2.0-dev, I get the following dependency errors:
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:
libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried fixing the broken packages using sudo apt-get install -f, sudo apt-get update, sudo apt-get upgrade and then sudo apt-get install libgtk2.0-dev. It still didn't work. I tried apt-get install on the dependencies and their dependencies, but the result is the same. The solutions in link1 and link2 did not help either.
My source.list contains:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
Am I missing something in my source.list? How can I resolve this?
apt-cache policy libgtk2.0-dev libpango1.0-dev libcairo2-dev showed that the problem was with /etc/apt/sources.list.d/raspi.list.
raspi.list contained deb http://archive.raspberrypi.org/debian/ wheezy main. Changed wheezy to jessie, ran apt-get update and then running apt-get install libgtk2.0-dev worked.
Use aptitude instead:
sudo aptitude install libglib2.0-dev

Depends: libssl0.9.8 (>= 0.9.8m-1) but it is not installable

I'm trying to install nginx (Debian 7, amd64):
apt-get install nginx
But I get an error:
nginx : Depends: libssl0.9.8 (>= 0.9.8m-1) but it is not installable
I downloaded the deb and install it:
wget http://snapshot.debian.org/archive/debian/20110406T213352Z/pool/main/o/openssl098/libssl0.9.8_0.9.8o-7_i386.deb
sudo dpkg -i libssl0.9.8_0.9.8o-7_i386.deb
But this has no effect. What am I doing wrong?
Thanks.
Solution:
To install nginx on Debian 7 you should add it in /etc/apt/sources.list :
deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx

Resources