I've been having a lot of problems with this install, especially with various unmet dependencies.
these are my system infos:
Linux
Ubuntu 20.04.4 LTS
64-bit
Gnome_Version: 3.36.8
Python
using a "poetry environment" (uses pip)
python Version: 3.8.10
I was finally able to install it more or less cleanly and get it working across the board and hope it will be usefull for others:
Installing GDAL on linux is full of problems and issues - this has resolved some of them for me:
sudo apt install libpq-dev
problem depedency with libpq5
sudo apt install libpq5=12.2-4
sudo apt install libpq-dev
success!
sudo apt install gdal-bin
sudo apt install libgdal-dev
problem with LOTS of dependencies
sudo apt install aptitude
(aptitude can help resolve dependency problems)
sudo aptitude install libgdal-dev
asks how to resolve issues --> I changed to next reccomendation by pressing "." --> then confirmed by pressing "Y" -->success
after these steps are successfull check if all 3 main libs are installed: "libpq-dev, gdal-bin, libgdal-dev":
apt list --installed | grep "gdal"
result:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gdal-bin/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed]
gdal-data/focal,focal,now 3.3.2+dfsg-2~focal2 all [installed,automatic]
libgdal-dev/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed]
libgdal29/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed,automatic]
python3-gdal/focal,now 3.3.2+dfsg-2~focal2 amd64 [installed,automatic]
check gdal version (should be 3.3.2 or higher if all went well):
gdalinfo --version
PYTHON
to install gdal in a python environment should now be possible:
poetry add gdal==3.3.0
or
pip install gdal==3.3.0
by john, this worked 06.07.2022
Related
I am trying to install libssl-dev and libssl1.0-dev in Ubuntu 18.04 via the following command:
sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5
I am getting the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libssl1.0-dev' for regex 'libssl1.0'
Note, selecting 'libssl1.0.0' for regex 'libssl1.0'
Note, selecting 'libssl1.0.2' for regex 'libssl1.0'
build-essential is already the newest version (12.4ubuntu1).
libqt5x11extras5 is already the newest version (5.9.5-0ubuntu1).
libqt5x11extras5 set to manually installed.
libgl1-mesa-dev is already the newest version (20.0.8-0ubuntu1~18.04.1).
libgl1-mesa-dev set to manually installed.
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
libssl1.0.0 is already the newest version (1.0.2n-1ubuntu5.10).
openssl is already the newest version (1.1.1-1ubuntu2.1~18.04.20).
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:
libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.10 is to be installed
libssl1.0-dev : Conflicts: libssl-dev but 1.1.1-1ubuntu2.1~18.04.20 is to be installed
E: Unable to correct problems, you have held broken packages.**
How do I solve these errors?
There are three ways to install libssl1.0-dev on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libssl1.0-dev Using apt-get
sudo apt-get update
sudo apt-get -y install libssl1.0-dev
Install libssl1.0-dev Using apt
sudo apt update
sudo apt -y install libssl1.0-dev
Install libssl1.0-dev Using aptitude
sudo aptitude update
sudo aptitude -y install libssl1.0-dev
The following sequence of commands should work to resolve dependencies.
# Fix broken dependencies on your system.
sudo apt-get install -f
# Reconfigure all unpacked packages.
sudo dpkg -–configure -a
# Fix broken dependencies in your system.
sudo apt-get install -f
# Install package on the system.
sudo apt-get install <package_name>
I'm trying to install minimal ansible 2.9.x on Ubuntu Bionic (18.04 LTS).
The final goal is to build new disk image (using packer) on every commit and want the process to be as fast as possible.
Using default Ubuntu ansible
Default ansible in bionic is 2.5.x.
This is too old, all ansible scripts are written for 2.9+.
Using official PPA
Using recommended way to install suggests adding following line to /etc/apt/sources.list:
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
and running following commands:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
$ sudo apt update
$ sudo apt install ansible
but it still requires python2 packages:
$ sudo apt install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-asn1crypto
python-cffi-backend python-crypto python-cryptography python-enum34 python-httplib2
python-idna python-ipaddress python-jinja2 python-markupsafe python-minimal
python-paramiko python-pkg-resources python-pyasn1 python-setuptools python-six
python-yaml python2.7 python2.7-minimal sshpass
Suggested packages:
python-doc python-tk python-crypto-doc python-cryptography-doc
python-cryptography-vectors python-enum34-doc python-jinja2-doc python-gssapi
python-setuptools-doc python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
ansible libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python
python-asn1crypto python-cffi-backend python-crypto python-cryptography python-enum34
python-httplib2 python-idna python-ipaddress python-jinja2 python-markupsafe
python-minimal python-paramiko python-pkg-resources python-pyasn1 python-setuptools
python-six python-yaml python2.7 python2.7-minimal sshpass
0 upgraded, 25 newly installed, 0 to remove and 33 not upgraded.
Need to get 11.3 MB of archives.
After this operation, 83.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Using pip
This is my current approach but installing pip3 and then installing ansible via pip is another extra step:
$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dh-python dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libfakeroot
libfile-fcntllock-perl libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libpython3-dev libpython3.6-dev libquadmath0 libstdc++-7-dev libtsan0 libubsan0
linux-libc-dev make manpages-dev python-pip-whl python3-crypto python3-dev python3-distutils python3-keyring python3-keyrings.alt python3-lib2to3
python3-secretstorage python3-setuptools python3-wheel python3-xdg python3.6-dev
Suggested packages:
binutils-doc cpp-doc gcc-7-locales debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc
gcc-7-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
glibc-doc bzr libstdc++-7-doc make-doc python-crypto-doc gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-secretstorage-doc python-setuptools-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dh-python dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libfakeroot
libfile-fcntllock-perl libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libpython3-dev libpython3.6-dev libquadmath0 libstdc++-7-dev libtsan0 libubsan0
linux-libc-dev make manpages-dev python-pip-whl python3-crypto python3-dev python3-distutils python3-keyring python3-keyrings.alt python3-lib2to3 python3-pip
python3-secretstorage python3-setuptools python3-wheel python3-xdg python3.6-dev
0 upgraded, 57 newly installed, 0 to remove and 33 not upgraded.
Need to get 85.3 MB of archives.
After this operation, 248 MB of additional disk space will be used.
Do you want to continue? [Y/n]
...which adds unnecessary time to the packer process :(
Any hints?
Ubuntu 18.04 comes with python3 already installed and ansible can be easily configured to use python3.
Does anyone know a way how to install ansible 2.9 without the need to install python2 or pip3?
I've had the same problem. In my case was mandatory to be in 2.9.+ because of AWX requirements ... If you are in Ubuntu 18.04 you can follow these steps:
$ sudo apt install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt update
$ sudo apt install ansible
That's it.
$ ansible --version
|___ ansible 2.9.7
Note: I recommend you to ask this kind of questions in Unix & Linux
As mentioned on the issue, it is currently recommended for Ubuntu users to use the Debian repository. You can download it directly here, and install the downloaded deb package using
sudo apt-get install ./ansible_x.y.z_all.deb
This will install ansible without installing python2.
I have successfully tested this on Ubuntu 19.10.
I hit the same issue. When I used
sudo apt install ansible
ansible was installed with Python 2.7.x
I uninstalled everything and installed ansible using pip. Now, when I do ansible --version I get
ansible 2.9.11
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]
I have recompiled the focal version of ansible (which uses python3) against bionic and published that in my PPA. There were only minimal changes necessary. You can use only the package in question instead of enabling the entire PPA. You will end up with ansible 2.9.6.
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
I downloded android studio and I tried to install on ubuntu 16.04 64 bit but it has "unable to run mksdcard sdk tool" error.
I checked all solutions but they produce errors too.
Seems that the only package you need is lib32stdc++6 for ubuntu 16.04
sudo apt-get install lib32stdc++6
I just stumbled upon this issue myself.
I guess that you found this topic from 2015?
Well, the given solution is a bit outdated but still pertinent: the 64bit Ubuntu 16.04 is indeed missing the 32bits version of the libraries and the
lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 libraries advised to be installed seems to have been removed from the official repos.
However You can still get them with using this command:
sudo apt-get install libz1:i386 libncurses5:i386 libbz2-1.0:i386 libstdc++6:i386
Then the installer should work just fine
Hope it will be of any help.
take a look at https://developer.android.com/studio/install.html
Select Linux...
Required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
For Ubuntu 18.04 and above versions, the following will work
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
Ubuntu18.04
I have to install pcsc-lite 1.8.13 on my debian-sid operating system.
When I run :/configure, I encounter "install libudev-dev" error.
I have installed libudev-dev with this command: "sudo apt-get instal libudev-dev".
Still, I get the same missing libudev-dev error.
How can I fix the problem?
Thanks,
Try installing pkg-config (sudo apt install pkg-config)