ros1_bridge installation error

asked 2019-07-02 05:06:33 -0500

kk2105 gravatar image

updated 2019-07-11 23:36:15 -0500

Hi Guys,

I have recently started working on ROS2 platform. And I want to create bridge between ROS1 and ROS2.

I have installed ROS2 dashing and proceeded with the installation of ros1_bridge.

Below are procedure:

sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 sudo apt update apt install ros-dashing-ros1-bridge
However I am getting the below error, which results in un-successful installation.

Fetched 74.3 MB in 1min 58s (629 kB/s) E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb Connection failed [IP: 91.189.88.24 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Troubleshooting:
Tried switching servers in ubuntu and softwares but did not help.
I am able to access the failed link and download the package using web browser.

Update 1:
Updating the apt-get update output

system@laptop:/module$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://packages.ros.org/ros/ubuntu bionic InRelease                                     
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                      
Get:4 http://packages.ros.org/ros2/ubuntu bionic InRelease [3,209 B]                           
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                    
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [886 kB]             
Get:8 http://packages.ros.org/ros2/ubuntu bionic/main amd64 Packages [344 kB]               
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [722 kB]    
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,240 kB]   
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [578 kB]
Get:12 http://packages.ros.org/ros2/ubuntu bionic/main arm64 Packages [331 kB]
Fetched 4,357 kB in 6s (779 kB/s)  
Reading package lists... Done

system@laptop:/module$

Update 2:

Output of curl command.

 system@laptop:/module$ curl -v http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb --output libboost.deb
   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 91.189.91.26...
 * TCP_NODELAY set
 * Connected to archive.ubuntu.com (91.189.91.26) port 80 (#0)
 > GET /ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb HTTP/1.1
 > Host: archive.ubuntu.com
 > User-Agent: curl/7.58.0
 > Accept: */*
 > 
  0     0    0     0    0     0      0      0 --:--:--  0:00:12 --:--:--     0* Empty reply from server
  0     0    0     0    0     0      0      0 --:--:--  0:00:12 --:--:--     0
 * Connection #0 to host archive.ubuntu.com left intact
 curl: (52) Empty reply from server
 system@laptop:/module$

Thank you, KK

edit retag flag offensive close merge delete

Comments

Can you please check whether you're running into #q325039?

What is the output of sudo apt update?

gvdhoorn gravatar image gvdhoorn  ( 2019-07-02 09:43:10 -0500 )edit

did you try building it from source?

pavel92 gravatar image pavel92  ( 2019-07-03 03:09:35 -0500 )edit

@gvdhoorn Thanks for the response and apologies for the delayed response. It doesn't seem like the issue I am facing issue related to #q325039. For example I can access the link http://archive.ubuntu.com/ubuntu/pool.... However I am not able to download the file libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb .
Thank you.

kk2105 gravatar image kk2105  ( 2019-07-11 07:14:03 -0500 )edit

@pavel92 I have not tried building from source. Ultimately I want to create a docker image, so it would be easy if I can install it using apt-get install
Thank you.

kk2105 gravatar image kk2105  ( 2019-07-11 07:15:33 -0500 )edit

What is the output of sudo apt update? I still think you're running into #q325039: apt trying to download "old versions" of .deb packages is exactly one of the symptoms of it.

gvdhoorn gravatar image gvdhoorn  ( 2019-07-11 08:12:28 -0500 )edit

@gvdhoorn I have updated the question with the apt-get update. Could you please let me know how can I skip those old files if it is looking for the old files which dont exist.

Thank you.

kk2105 gravatar image kk2105  ( 2019-07-11 22:20:52 -0500 )edit

@gvdhoorn I have also tried updating the new keys, but still no luck.

kk2105 gravatar image kk2105  ( 2019-07-11 22:22:32 -0500 )edit

@kk2105 can you please try curl -v http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb --output libboost.deb and give us the output?

soroosh129 gravatar image soroosh129  ( 2019-07-11 23:19:49 -0500 )edit

@soroosh129 Thanks for the reply. I have updated the question with the curl output. Please have a look. Is it something I am fundamentally doing wrong ?

kk2105 gravatar image kk2105  ( 2019-07-11 23:22:47 -0500 )edit

@kk2105 Can you ping archive.ubuntu.com ? This looks like your connection to your mirror is broken. Might need to try changing mirrors in software sources. Also your question's format broke after you added the curl output.

soroosh129 gravatar image soroosh129  ( 2019-07-11 23:30:02 -0500 )edit

@soroosh129 I am able to ping archive.ubuntu.com.

system@laptop:/module$ ping archive.ubuntu.com
PING archive.ubuntu.com (91.189.88.149) 56(84) bytes of data.
64 bytes from danava.canonical.com (91.189.88.149): icmp_seq=1 ttl=52 time=147 ms
64 bytes from danava.canonical.com (91.189.88.149): icmp_seq=2 ttl=52 time=146 ms
64 bytes from danava.canonical.com (91.189.88.149): icmp_seq=3 ttl=52 time=147 ms

I have tried changing the mirrors. But still no luck.

kk2105 gravatar image kk2105  ( 2019-07-11 23:39:41 -0500 )edit

@soroosh129 Could you please check if you can access / download these files.

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fltk1.3/fltk1.3-doc_1.3.4-6_all.deb  Connection failed [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb  Connection failed [IP: 91.189.88.24 80]
kk2105 gravatar image kk2105  ( 2019-07-11 23:41:26 -0500 )edit

@kk2105 in any case, this isn't an ROS issue since you can't download the deb file directly from the ubuntu url.

soroosh129 gravatar image soroosh129  ( 2019-07-11 23:42:12 -0500 )edit

@kk2105 I can download both of them.

soroosh129 gravatar image soroosh129  ( 2019-07-11 23:43:46 -0500 )edit

@soroosh129 Is there any alternate options to download or link those files. Could you please let me know which mirror you are currently using ?

kk2105 gravatar image kk2105  ( 2019-07-12 00:24:03 -0500 )edit

@kk2105 I am using mirror.lstn.net/ubuntu . Really the problem is that those are Ubuntu packages. I have no idea how to fix this, nor this is the right place to figure that out. You should look at Ubuntu-related forums, etc.

soroosh129 gravatar image soroosh129  ( 2019-07-12 01:50:39 -0500 )edit