How to install catkin on a virtual machine Ubuntu 18.04 - python

I think I have indigo...
I followed the instructions: https://wiki.ros.org/catkin#Installing_catkin
Can someone please help me with this? I used a virtualbox to run Ubuntu 18.04. Can catkin work with indigo? I'm lost...
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **sudo apt-get install ros-indigo-catkin**
[sudo] password for notsotechnical:
Reading package lists... Done
Building dependency tree
Reading state information... Done
**E: Unable to locate package ros-indigo-catkin**
notsotechnical#notsotechnical-VirtualBox:~/build/build$ sudo apt-get install cmake python-catkin-pkg python-empy python-nose python-setuptools libgtest-dev build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
python-setuptools is already the newest version (39.0.1-2).
libgtest-dev is already the newest version (1.8.0-6).
python-empy is already the newest version (3.3.2-1build1).
python-nose is already the newest version (1.3.7-3).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
python-catkin-pkg is already the newest version (0.4.13-100).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-catkin-pkg : Depends: python-catkin-pkg-modules (>= 0.4.13) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
notsotechnical#notsotechnical-VirtualBox:~/build/build$ **apt --fix-broken install**
**E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?**
notsotechnical#notsotechnical-VirtualBox:~/build/build$

If you still have the problem:
Ubuntu 18.04 runs with ros melodic, not indigo. SO follow your link, but on the very top you need to switch to melodic instead of indigo.

Related

cannot install python3-libnvinfer on ubuntu

Hi I want to install python3-libnvinfer and python3-libnvinfer-dev package on Ubuntu20.04 with python3.8
my goal is install TensorRT-8 on ubuntu 20.04
I do the exact installaion steps on nvidia site.
bu when I try this command:
sudo apt-get install python3-libnvinfer
I'll get this Error:
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:
python3-libnvinfer : Depends: python3 (< 3.7) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
I also try this with Python3.7 and don't fix...
I Can't Install Python3.10 because seems not compatible with Ubuntu 20.04.
I tried installing TensorRT on Ubuntu 20.04 and I expect it to install correctly with python 3.8 and also with Python3.7
I Try:
sudo apt-get install python3-libnvinfer-dev
and
sudo apt-get install python3-libnvinvfer
but I ran into an Error described above.

how to install python-webkit and python-webkit-dev in ubuntu 18.04

I was getting E: Package 'python-webkit' has no installation candidate
ubuntu#ip-172-31-43-50:~$ sudo apt install python-webkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-webkit 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 'python-webkit' has no installation candidate
ubuntu#ip-172-31-43-50:~$
Add deb http://cz.archive.ubuntu.com/ubuntu xenial main universe to /etc/apt/sources.list
And run sudo apt-get update

Letsencrypt installation fails in ubuntu 16.04

sudo apt-get install letsencrypt
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:
` letsencrypt : Depends: python-letsencrypt (= 0.4.1-1) but it is not going to be installed
Depends: python:any (>= 2.7~)
E: Unable to correct problems, you have held broken packages.`
Remove the python package from ubuntu
and install python-dev
sudo apt-get remove python
sudo apt-get install python-dev
This should solve the letsencrypt installation

Bug Python 2.7.7 VS 2.7.9 on Debian Wheezy

I wanted to install Python 2.7.9 on my Debian Wheezy and I've download the .deb file from Debian site. Unfortunately now I apparently have caused a bug, this is what I have after an apt-get upgrade:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython2.7 : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
python2.7 : Depends: python2.7-minimal (= 2.7.9-2) but 2.7.3-6+deb7u2 is installed
Depends: libpython2.7-stdlib (= 2.7.9-2) but it is not installable
python2.7-dev : Depends: python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
E: Unmet dependencies. Try using -f.
If I try an 'apt-get -f install' it asks me to remove more than 2GB from my OS and I don't want this. Any idea?
The right way when working with distributions such as Debian is two work with the official repositories, that is, using apt-get install rather than downloading and installing with dpkg -i.
If you work directly with dpkg, important information that apt needs is missing.
My suggestion for you is this-
1- Undo you changes by using dpkg -P on the package you installed manually
2- Run apt-get update
3- look for the package with apt- apt-cache search python=<version> or without version.
4- If you don't find the wanted version, you can use other official Debian repositories (include them in you apt sources list files)
Fixed this way: as basically the problem was
python2.7 (= 2.7.3-6+deb7u2) but 2.7.9-2 is installed
I've downloaded python version 2.7.3-6+deb7u2 and with a simple dpkg -i I have installed it. The downgrading as been automatic

Postgresql - Could not find any downloads

Why this exception generates on apt-get install or on pip :
root#tameen:/home/tameen/Downloads/postgis-2.0.1# pip install postgresql-2.0.1
Collecting postgresql-2.0.1
Could not find any downloads that satisfy the requirement postgresql-2.0.1
No distributions at all found for postgresql-2.0.1
sudo apt-get install postgresql
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:
postgresql : Depends: postgresql-9.4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
PostgreSQL is a database system, not a Python library. pip is for installing Python libraries only. You will need to install this via your system's package manager.
For instance, if you are on Debian or Ubuntu, you would need to do sudo apt-get install postgresql.

Categories

Resources