Broken Packages - ROS kinetic
Hello. I trying to install the ROS-Kinteic in Ubuntu 16.04 LTS. But I am having the following trouble:
Packet lists are read... Ready
The dependency tree is created.
Status information is read in.... Ready
Some packages could not be installed. This may mean that
you have requested an impossible situation or, if you have requested the
Unstable distribution that use some required packages yet
have not been created or have not yet left Incoming.
The following information may help you to resolve the situation:
The following packages have unfulfilled dependencies:
ros-kinetic-desktop-full : Depends on: ros-kinetic-desktop is not to be installed
Depends on: ros-kinetic-perception but should not be installed
Depends on: ros-kinetic-simulators but should not be installed
Depends on: ros-kinetic-urdf-tutorial but should not be installed
E: Problems cannot be corrected, you have retained broken packages.
I have already tried doing a lot of things, such remove ROS (with purge and autoremove), changing the repositories and adding repositories in the source.list and in the ubuntu system, installing the packages individually, etc. However nothing works. In this ubuntu there also is a drivepx2 installed. Maybe is this the problem? Some conflict?
Thanks in advance.
Asked by Vini71 on 2019-10-07 09:31:01 UTC
Comments
Hello !
Which tutorial did you follow for installing ROS ? Also, can you edit your question and add the result of the following commands :
1)
cat /etc/apt/sources.list.d/ros-latest.list
2)
cat /etc/apt/sources.list | grep -v '#'
3)
apt list --installed | grep ros
Asked by lmathieu on 2019-10-07 10:37:58 UTC
Hello Imahthies I am trying to install the ROS-kinetic version present in this link http://wiki.ros.org/kinetic/Installation/Ubuntu. The problem is in step 1.5 ros-kinetic-desktop-full install does not work. I have already automatically searched and chosen the best repository ( I am in Germany now, wokinr with autononomous car, so it choseed the de.fau...)
The return of the commands you suggest me are:
1- cat /etc/apt/sources.list.d/ros-latest.list deb http://packages.ros.org/ros/ubuntu xenial main
2) cat /etc/apt/sources.list | grep -v '#' deb http://ftp.fau.de/ubuntu/ xenial main restricted universe multiverse
deb http://ftp.fau.de/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://ftp.fau.de/ubuntu/ xenial-security main restricted universe multiverse deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros
Asked by Vini71 on 2019-10-08 02:42:26 UTC
The third return is :
3) apt list --installed | grep ros
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
cpp-5-aarch64-linux-gnu/now 5.4.0-6ubuntu1~16.04.9cross1 amd64 [Installiert,lokal] cuda-cross-aarch64-9-2/now 9.2.88-1 amd64 [Installiert,lokal] cuda-cublas-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-cudart-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-cufft-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-curand-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-cusolver-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-cusparse-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-driver-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-misc-headers-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-npp-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-nvgraph-cross-aarch64-9-2/now 9.2.88-1 arm64 [Installiert,lokal] cuda-n
Asked by Vini71 on 2019-10-08 02:43:35 UTC
If you want to use the german ros package mirroir repository, use this command :
sudo sh -c '. /etc/lsb-release && echo "deb http://packages.ros.org.ros.informatik.uni-freiburg.de/ros/ubuntu $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
Actually you only use the ubuntu package german mirroir, which is good too but ros package will still download from package.ros.org (the default repo)
Can you delete the last line of your
/etc/apt/sources.list
? It seem that this last line should not be here (the :deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros
)Remember to
sudo apt update
after each change before trying to install.also, please use the backtick (
) when pasting command or triple backtick (
`` ) when pasting muliline command or file, it make it easier to read :) some doc hereAsked by lmathieu on 2019-10-08 03:44:27 UTC
Thanks Imathies for your attention. I really need to solve this issue to begin working in the lab However it is not working: After realizing the steps you indicate I received the following message:
W: The repository "http://packages.ros.org/ros/ubuntu $(lsb_release Release" does not contain a release file. N: Data from such a repository cannot be authenticated and its use is potentially dangerous. N: See the apt-secure(8) manual page for more details on package vault creation and user configuration. E: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-backports/InRelease Expected entry "multivers/source/Sources" could not be found in release file (wrong entry in sources.list or malformed file). E: Failed to retrieve http://ftp.fau.de/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 131.188.12.211 80] E: Failed to retrieve http://ftp.fau.de/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 131.188.12.211 80]
Asked by Vini71 on 2019-10-08 06:51:37 UTC
E: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/$(lsb_release/-sc)/source/Sources 404 Not Found [IP: 64.50.233.100 80] E: Failed to retrieve http://ftp.fau.de/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 131.188.12.211 80] E: Failed to retrieve http://mirrors.ustc.edu.cn/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 218.104.71.170 80] E: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-security/main/dep11/Components-amd64.yml.xz hash total does not match E: Failure to fetch http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-security/main/dep11/icons-64x64.tar.gz 404 Not Found [IP: 218.104.71.170 80] E: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-security/universe/dep11/Components-amd64.yml.xz 404 Not Found [IP: 218.104.71.170 80] E: Failed to retrieve http://mirrors.ustc.edu.cn/ubuntu/dists/xenial-security/universe/dep11/icons-64x64.tar.gz 404 Not Found [IP: 218.104.71.170 80] E: Failed to retrie
Asked by Vini71 on 2019-10-08 06:52:34 UTC
Imatheus I think it is a repository "trust" issue. °apt-secure(8)
Such is explained here https://manpages.debian.org/stretch/apt/apt-secure.8.en.html
However I am not expert in computer sciences... I don t know how to make able the repositories to get the packages passing for the secutiry sytem, become it trustful, could you asssist me in realizing this?
Thanks in advance
Asked by Vini71 on 2019-10-08 07:10:26 UTC
No problem about that,
Is your Ubuntu new ? You shouldn't have
mirroirs.ustc.edu.cn
in your source.listIf your ubuntu is new (You just installed it and have no data in it), I recommend you to reinstall ubuntu again and follow the ROS installation again (Only if it's a new installation, because you will lose everything), I highly recommend you to do that if you can, as apt problem can be a pain to resolve.
if you have important data or can't reinstall, change your Ubuntu update center to Germany (system parameter > software update > Download from...) and please make sure that your /etc/apt/source.list look like this : https://gist.github.com/mlauret/c51d42e88f3b76bcea55e67c869ac178
There should be no ROS mention and no "$(lsb_release"
And also, make sure that your /etc/apt/source.list.d/ros-lastest.list look like this : https://gist.github.com/mlauret/546a45d78dd8c0af7708fc8c87abdac0
Asked by lmathieu on 2019-10-08 07:22:13 UTC
I set authorization...enabling the repository configuring [true=yes] for the package repository however I still receive the error message of broken packages...unfortunately
Asked by Vini71 on 2019-10-08 07:30:10 UTC
OK I had already deleted those mirrors before trying your commands. Unfortunately I cannot reinstall Ubunt because the guys here have spend a lot of weeks to establish the communication between ubuntu and a drivepx2...so I would lose everything
Ok I verified the source list, I also don t understand why it lsb_release instead of ROS and your second link was not available to install.
However a friend of mine will try assist me by Teamviewer. But thanks very much for your advices friend...I really tried them
Asked by Vini71 on 2019-10-08 08:02:02 UTC