Win10-WSL: problems installing ROS on Ubuntu 18.04
I am trying to install ROS on a windows 10 system (version 1803) following the instructions at http://www.ros.org/ and alternately https://janbernloehr.de/2017/06/10/ro... help which I reached from http://wiki.ros.org/Installation/Windows .
I have made sure that WSL is turned on. I installed the latest Ubuntu from: https://www.microsoft.com/en-us/p/ubu...
The following gives the ubuntu release information (I do not know what it means that “No LSB modules are available” but have included it for completeness).
karl@DESKTOP-H1L55EN:/mnt/c/Users/Karl$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
One thing to note from Jan’s version, he does not show configuring a Ubuntu repository. Once he gets a modern version of WSL going, he goes straight to setting up the sources list and keys. This is important to note because, for me, configuring my Ubuntu repository (from the suggested source:
https://help.ubuntu.com/community/Rep... which leads to https://help.ubuntu.com/community/Apt... )
is far more complicated than all the rest of the installation steps combined, i.e., I’d love to skip it as well.
From: https://answers.ros.org/question/1901... I gather that I don’t really need to set up the keys to continue the installation process. However, I get errors if I try the follow-on steps (which I’ll show later on). So, I thought I should try to get the repository configured before I continued (in case that is causing any or all of the downstream problems).
I downloaded all the suggested repository files with the following caveat. The instructions call for Packages.bz2 , Packages.gz, and Release from the main, multiverse, restricted, and universe components for the needed architecture (amd64) to be placed in the appropriate directories on my machine. Each of the locations had two of those files, but no packages.bz2. They did each have packages.xz. So, I downloaded them instead. So, now I have the following in folders in my … dists/bionics directory.
karl@DESKTOP-H1L55EN:/home/repository/dists/bionic$ dir
Contents-amd64.gz Release Release.gpg main multiverse restricted universe
karl@DESKTOP-H1L55EN:/home/repository/dists/bionic$.
And main (as well as multiverse, restricted, and universe) each look like the following:
karl@DESKTOP-H1L55EN:/home/repository/dists/bionic/main$ dir
Packages.gz Packages.xz Release
The next step (Add the local repository in your sources list) was not clear to me.
From: https://help.ubuntu.com/community/Rep... It would appear that my /etc/apt/sources.list should have lines that look like the following.
deb http://us.archive.ubuntu.com/ubuntu/ saucy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ saucy universe
deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe
where bionic should be substituted for saucy.
The following uncommented lines are in my sources.list
deb http://archive.ubuntu.com ...
Can you please fix the formatting of your question?
+100 for using Preformatted Text for all the console output and config files, but for the rest of the text it's not needed and makes things hard to read.
And a first comment: I don't know what you are doing exactly with the
dists/bionic/main
steps, but that should all not be needed. You can treat 18.04 on WSL as a regular Ubuntu, and you wouldn't do that on a "real Linux" system either.I would suggest:
apt
)Everything should work as normal. The blog post is nice, but there is nothing special to Win10/WSL (apart from the X-server bits).
To edit your question, press the
edit
button/link right below the question text (a bit to the right of the big "Comments" heading).Thank you for the persistence on the editing. From your first suggestion, I tried hitting the edit button that was next to the question, not realizing that would only edit the question. From your last suggestion I found the edit button at the bottom.
Unless I am mistaken, the regular Ubuntu Bionic ROS installation steps say to set up the repository. It does not say how, but has a link, which is where I start to get bogged down (that is what the dist/bionic/main stuff is about) Big question: Do I need to set up a repository?
No.
yes, and that means adding an
apt
source to your local configuration. Which you do by following the steps in the Setup your sources.list section of the install doc.the context for that link is:
So you only follow the sections on the Canonical page that tell you how to do that.