Error during sudo apt-get install ros-melodic-qt-build

asked 2021-10-14 18:19:02 -0500

ishaniis gravatar image

updated 2021-10-14 18:21:23 -0500

I was trying to install qt melodic package, I am not sure is it due to the keys getting expired or what!

Could not connect to packages.ros.org:80 (64.50.233.100). - connect (111: Connection refused) Could not connect to packages.ros.org:80 (64.50.236.52). - connect (111: Connection refused) Could not connect to packages.ros.org:80 (140.211.166.134). - connect (111: Connection refused)
        E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-melodic-qt-build/ros-melodic-qt-build_0.2.10-1bionic.20200801.023211_amd64.deb  
    Could not connect to packages.ros.org:80 (64.50.233.100). - connect (111: Connection refused) Could not connect to packages.ros.org:80 (64.50.236.52). - connect (111: Connection refused) 
    Could not connect to packages.ros.org:80 (140.211.166.134). - connect (111: Connection refused)
    E: Internal Error, ordering was unable to handle the media swap

Can someone help me with that ?

edit retag flag offensive close merge delete

Comments

Take a look at this question that may help you: #q337030.

osilva gravatar image osilva  ( 2021-10-14 18:38:53 -0500 )edit

Also your tags say rqt but the error is for qt-build.

osilva gravatar image osilva  ( 2021-10-14 18:39:50 -0500 )edit

This seems like a problem with infrastructure, not with Qt itself, or the qt_build package @osilva.

@ishaniis: the URL shown in the error is valid, and I can download the file it points to.

This might have been a transient error, or something local to your connection / organisation.

Does it keep happening? Is it just that package, or other packages as well?

Are you behind a (corporate) firewall or proxy?

gvdhoorn gravatar image gvdhoorn  ( 2021-10-15 02:08:59 -0500 )edit

@gvdhoorn

Q: Does it keep happening? A: I've got this error for the first time.

Q: Is it just that package, or other packages as well? A: It's just happening with this package. I am not sure but I got the same error during rosdep too! (but not sure though)

Q: Are you behind a (corporate) firewall or proxy? A: Yup.

ishaniis gravatar image ishaniis  ( 2021-10-15 12:13:09 -0500 )edit

@gvdhoorn so I've purged one of package and tried to reinstall, to check for installation with the normal package, like vim and It was installed like a charm! Not sure, why its happening with this package itself.

ishaniis gravatar image ishaniis  ( 2021-10-15 12:15:52 -0500 )edit

It could be the proxy or firewall is somehow blocking this package. I've seen stranger things. URL filtering rules may be interfering.

If other ROS packages do work, it might be this is something you'll have to find a work-around for.

To make sure it isn't a cache issue, you could try sudo apt clean && sudo apt update and try installing again.

But no guarantees.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-15 12:59:03 -0500 )edit