ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Can't install Melodic on Ubuntu 18.04

asked 2022-02-22 13:07:52 -0600

kozinovsky gravatar image

Hello everyone!

I'am trying to install ROS melodic on ubuntu 18.04 by the following installation guide Installation guide

But have a problem on the step #1.4 when I type the command:

sudo apt install ros-melodic-desktop-full

I am getting an error message (sorry, can't upload files yet)

kozinovsky@kozinovsky-GT70:~/Desktop$ sudo apt install ros-melodic-desktop
[sudo] password for kozinovsky:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-melodic-desktop

The similar problem I saw on the forum is this: Similar problem

Based on suggestions of this question, here is my output for cat /etc/apt/sources.list.d/ros-latest.list

kozinovsky@kozinovsky-GT70:~/Desktop$ cat /etc/apt/sources.list.d/ros-latest.list
deb bionic main

Also here is the output for uname --all:

kozinovsky@kozinovsky-GT70:~/Desktop$ uname --all
Linux kozinovsky-GT70 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:09:27 UTC 2020 i686 i686 i686 GNU/Linux

So, the problem itself looks like, there is no package ros-melodic-desktop-full available on the server, but I don't understand why, melodic is currently supported.

Another idea I have is, because I have x32 version of ubuntu (x686, like I can see in the output of uname --all)
And on this page melodic installation
I see in "Select Your Platform" for Ubuntu Bionic "amd64 armhf arm64"
Is this a problem?
Before reinstalling the OS I decided to ask here, what can be the issue.

Thanks everyone in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-22 14:34:10 -0600

gvdhoorn gravatar image

updated 2022-02-22 14:35:05 -0600

Can't install Melodic on Ubuntu 18.04 [..] I have x32 version of ubuntu [..] Is this a problem?

Yes, that's the cause of the error you mention.

There are no x86 (32 bit) packages of ROS Melodic on Ubuntu Bionic (ie: 18.04).

See also REP 3: Target Platforms: Architectures.

As you already found, there are only amd64 (64 bit) packages available.

You'd have to install an amd64 version of Bionic to be able to install Melodic using apt.

edit flag offensive delete link more


hello, and how to change so that there is no need to reinstall the image?

KennyDeDavion gravatar image KennyDeDavion  ( 2022-09-13 04:59:48 -0600 )edit

Hi! Unfortunately, you can't change it, you need to redo the imaging with the right image (amd64 in this case)

kozinovsky gravatar image kozinovsky  ( 2022-09-14 08:24:04 -0600 )edit

thank you, so if I have raspbian and ros melodic on my rpi3, is it not possible to compile with catkin without problems?

KennyDeDavion gravatar image KennyDeDavion  ( 2022-09-16 05:03:37 -0600 )edit

Question Tools

1 follower


Asked: 2022-02-22 13:07:52 -0600

Seen: 526 times

Last updated: Sep 13 '22