LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2016, 11:15 AM   #1
rafranco88
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
Cannot install software using gnome-software behind a proxy


Hi all guys,
I wanted to share with you all a problem I faced out these days using a CentOS 7 installation behind a proxy with GNOME desktop environment.

After setted up proxy settings in /etc/environment I can correctly install software from repositories as usual with command
sudo yum install ...
but cannot install any packages using gnome-software application: clicking on install button, installation process stops and progress bar seems to be stucked...

after some diggings I found out gnome-software uses python urlgrubber module to download packages and that the whole process got stuck on the po.repo.getPackage instruction in the following block

try:
po.repo.getPackage(po,
checkfunc=checkfunc,
text=text,
cache=po.repo.http_caching != 'none',
**kwargs
)
except Errors.RepoError, e:
adderror(po, exception2msg(e))

of the /usr/lib/python2.7/site-packages/yum/__init__.py file

I thought it ignores environment proxy settings, and to verify that I added the following entry to the kwargs arguments of the po.repo.getPackage method
kwargs['proxies'] = {'http': 'proxy ip addroxy port'}
As expected that "fixed" the problem making gnome-software correctly download and install all requested packages.

Now, my questions are:
- Am I doing something wrong for which that module does not work?
- Is there a clean way to modify the module's code to make it keep in mind of the environment proxy settings?
- Or, is there a clean way to configure proxy settings on this module?

Any ideas?
Any help would be appreciated.
regards and thank you
 
Old 11-03-2016, 05:34 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,848

Rep: Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383
Linux has never correctly used proxys that I've seen. They finally made some distros allow a global proxy setting in networking section but tools that go outside of it like apt and such have to have their config set if possible in some text or config file for each program. Even then it is sometimes flakey.

See this for some ideas or keep searching terms like gnome-software proxy. https://ask.fedoraproject.org/en/que...roxy-settings/
 
Old 11-04-2016, 04:07 AM   #3
rafranco88
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Re: Cannot install software using gnome-software behind a proxy

Very thank you for your reply.

Finally I solved configuring static proxy settings in /etc/yum.conf.

gsettings seems to get correct proxy settings from the global settings in applications -> system tools -> settings; specifically, in global settings I' ve configured auto proxy configuration with a .pac script, but it only works for firefox.

Do you know which distro has these features?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSUSE Leap 42.1 - Gnome 3.16.2 gnome-software (Appstream Software Repostitory) No Application Data Found ColJohnHannibalSmith SUSE / openSUSE 1 06-12-2016 04:33 AM
[SOLVED] Some software downloaded with Software Manager (Mint 9-Gnome) does not show in Menu Neyzan Linux - Software 3 09-12-2010 03:30 PM
proxy software to install on server thok Linux - Software 3 10-24-2007 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration