Problem with KPackageKit update
Alan Dacey
grokit at ajinfosearch.com
Fri Sep 17 14:51:34 UTC 2010
On Friday, September 17, 2010 10:19:26 am Nikolas Schrod wrote:
> On Friday, September 17, 2010 03:56:10 pm Clay Weber wrote:
> > On Friday, September 17, 2010 09:16:45 am Gil Gibbons wrote:
> > > On 09/17/2010 09:13 AM, schrod at biochem.mpg.de wrote:
> > > > Dear all,
> > > >
> > > > I recently installed Kubuntu on my work computer, which sits behind a
> > > > proxy server. I set the proxy settings in the system settings/network
> > > > as well as in the .bashrc and it seems to work (ping in the terminal
> > > > and web browsing via konqueror).
> > > >
> > > > However I have a severe problem. When I want to install new packages,
> > > > KPackageKit does not find anything. I thus want to refresh my
> > > > repositories. I go to settings --> edit software sourses and
> > > > uncheck/recheck one of the repositories. When I close the window, it
> > > > tells me I have to reload. I confirm and it starts downloading.
> > > > The problem: it always stops at 25% (or sometimes 27% or 28%),
> > > > independent of which repositories are checked!?
. . .
> >
> > You may have to tell apt about your proxy - it does not necessarily follow
> > the desktop's settings.
> >
> > look here:
> > https://help.ubuntu.com/community/AptGet/Howto
> > *then* you can install synaptic :)
. . .
>
> I've set the proxy and an echo $http_proxy gives the rights proxy server. also
> I can ping the repository and receive a response. However, it still doesn't
> successfully connect....
I have that same problem at work and have not always been able to get
Kpackagekit to work. It is because of the type of proxy they use, windows
only. It's hit or miss. I have had no problems with the command line though.
The instructions above basically say to put the proxy line in two places, one
for apt (kpackagekit) and the other for bash (konsole). What it does not
say is where to put your username and password. That is the only way I
found it possible to get through the proxy server.
So instead of:
http_proxy=http://yourproxyaddress:proxyport
Try these two lines:
http_proxy=http://username:password@yourproxyaddress:proxyport
ftp_proxy=http://username:password@yourproxyaddress:proxyport
I found no way to automatically update my new passwords so a manual edit is
needed every time the password changes. I also have the problem where DNS
doesn't work with linux on our internal network so I need to use the actual IP
address instead of the name. If you have this problem just ping the server name
and you will see the ip address. So the end of my ~/.bashrc file would have
something like:
export http_proxy=http://adacey:e@Gah*86v42@10.71.5.27:8080
export ftp_proxy=http://adacey:e@Gah*86v42@10.71.5.27:8080
Alan
More information about the kubuntu-users
mailing list