Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

504 - unknown url type: tor ( also tor+http ) #109

Open
gr936 opened this issue May 3, 2020 · 4 comments
Open

504 - unknown url type: tor ( also tor+http ) #109

gr936 opened this issue May 3, 2020 · 4 comments
Labels

Comments

@gr936
Copy link

gr936 commented May 3, 2020

using apt-offline with a tor setup gives the following errors:

504 - unknown url type: tor
504 - unknown url type: tor+http

Apt over tor is setup following the instructions provided by Debian at
https://wiki.debian.org/SourcesList, section "Using Tor with Apt"

Both the offline and online systems are setup with tor addresses "tor://vwakviie2ienjx6t.onion..." and both offline and online systems update successfully (putting the offline system directly online to test).

For completeness, I tested both the "tor://vwakviie2ienjx6t.onion..." and "tor+http://vwakviie2ienjx6t.onion..." formats on both sides (offline/online) and both formats work online but fail with apt-offline.

apt-offline version on both online and offline systems

# apt-offline -v
1.8.2
@rickysarraf
Copy link
Owner

tor transport is not supported in apt-offline.

I think the tor transport is useful on systems where you are directly downloading for the target system. So it is useful to use tor to ensure there is no direct trail.

In the use case of apt-offline, one mostly does the download operation on a different machine. So your actual machine's trace isn't there at all.

Do you see a strong use case for tor support in apt-offline ?

@gr936
Copy link
Author

gr936 commented May 4, 2020

There are many, but the simplest and strongest would be if a location (home, office, lab) wishes to remain private in term of the software installed for security or legal restrictions (eg some software is illegal in certain countries). So you might have two computers side-by-side, an offline one and an online one, both running linux. The offline computer might have a crypto wallet or some sensitive selection of software packages (eg something illegal in a specific country). New software or updates for the offline computer would be downloaded from the online computer.

Thus it is critical that the apt-offline on the online computer also use the tor transport protocol. In certain countries, this can be a very serious issue.

Of course, there are many workarounds, but since apt and apt-offline, by the nature of their names, sound like they would offer similar functionalities, it would be nice if apt-offline would support the same functionalities possible in apt.

@rickysarraf
Copy link
Owner

I don't see a very strong use case user group for this feature. But I'll mark this wishlist. Patches welcome

@rickysarraf
Copy link
Owner

The error part should now be fixed, as in errors won't directly be reported, with this commit 50267a6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants