linuxmint / mintsources

53 stars 72 forks source link

proxy settings ignored #206

Open oz42 opened 4 years ago

oz42 commented 4 years ago

mintsources: Installiert: 2.0.2 Installationskandidat: 2.0.2 Versionstabelle: *** 2.0.2 700 700 http://packages.linuxmint.com ulyana/upstream amd64 Packages 700 http://packages.linuxmint.com ulyana/upstream i386 Packages 100 /var/lib/dpkg/status

NAME="Linux Mint" VERSION="20 (Ulyana)" ID=linuxmint ID_LIKE=ubuntu PRETTY_NAME="Linux Mint 20"

mintsources ignores the proxy settings no matter what I try. I tried to define the proxy in the network settings and by a profile.d shell script.

This bug exists since Mint 19.3

Workaround: do not use a mirror server.

xenopeek commented 4 years ago

What doesn't work in mintsources when you enable the proxy? And can you share which settings you set in profile.d?

There was an earlier issue (#191) on this that was about gpg keys not being added when adding a PPA, which is an issue with dirmngr used by apt-key which mintsources uses: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1433761

oz42 commented 4 years ago

It is impossible to choose a mirror. I see lots of TCP SYN, so the proxy settings are ignored.

My /etc/profile.d/proxy.sh:

http_proxy=http://172.22.2.1:80 https_proxy=http://172.22.2.1:80 export http_proxy export https_proxy

I have also enabled the proxy settings in the 'network settings' , still no luck. I just have seen that there is a proxy setting in 'network connection'. But it is unusable, it knows only 'none' and 'automatic'.

elschman commented 4 years ago

if this is regarding the proxy ignored for gpg see my PR #209

oz42 commented 4 years ago

I just started /usr/bin/python3 /usr/bin/mintsources from a shell and got many lines like

Error '(7, 'Failed to connect to linuxmint-packages.mirror.liteserver.nl port 80: Verbindungsaufbau abgelehnt')'

on STDERR => connection refused. No problem to access linuxmint-packages.mirror.liteserver.nl with a web browser that is configured with 'use system proxy settings'.