Will not search all launchpad PPAs

Bug #902992 reported by Xian75
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Y PPA Manager
Invalid
Undecided
Unassigned

Bug Description

When I double click "Search in all Launchpad PPAs"; it tells me "You don't seem to be connected to the Internet. This function needs a working Internet connection (and a working wget)".

I have a working Internet and the wget is installed when I check Synaptic manager.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

Hmmm Y PPA Manager uses wget to see if you're connected to the Internet and this means wget can't access google.com for some reason. Do you by any chance use a proxy? Try: "wget www.google.com", does it work?

Revision history for this message
Xian75 (xian75) wrote :

Here is the outcome:

Resolving www.google.com... 74.125.45.103, 74.125.45.104, 74.125.45.105, ...
Connecting to www.google.com|74.125.45.103|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

    [ <=> ] 10,452 --.-K/s in 0s

2011-12-12 10:57:20 (145 MB/s) - `index.html' saved [10452]

Revision history for this message
Xian75 (xian75) wrote :

No I do not believe I amusing a proxy. It is a centurylink fiberoptic dsl connection.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

That's really weird... it should work then, that's the only thing it checks. Is it still not working (maybe it was a temporarily issue)? Since I can't reproduce this, it means something outside Y PPA Manager is acting weird...

As a work-around, you can edit y-ppa-cmd:
gksu gedit /usr/bin/y-ppa-cmd

And replace the "testConnection" function "if" content to "echo Internet connection - ok" (lines 55 to 57).

Revision history for this message
Xian75 (xian75) wrote : Re: [Bug 902992] Re: Will not search all launchpad PPAs

I have looked everywhere and there is no proxy server in network
connections or in Firefox. I have attempted to search through my router
settings and can not find anything about proxy settings. I use a Cisco
DDR2200 router.

I have retried it and it still says the same thing.

I rarely have an issue when I restart Ubuntu and it doesn't detect my
wired connection. I am wondering if that might have something to do with
it.?

Of course I can not figure out what to do about that.

Thanks anyways.

On 12/12/2011 05:39 PM, Alin Andrei wrote:
> That's really weird... it should work then, that's the only thing it
> checks. Is it still not working (maybe it was a temporarily issue)?
> Since I can't reproduce this, it means something outside Y PPA Manager
> is acting weird...
>
> As a work-around, you can edit y-ppa-cmd:
> gksu gedit /usr/bin/y-ppa-cmd
>
> And replace the "testConnection" function "if" content to "echo Internet
> connection - ok" (lines 55 to 57).
>

Revision history for this message
Xian75 (xian75) wrote :

Sorry for getting back so long Your work around has corrected the problem. Wanted to make sure it didn't happen later on. It works fine.

Revision history for this message
Xian75 (xian75) wrote :

I have had to reinstall Ubuntu 11.10; unrelated problem to Y PPA Manager. Now the work-around does not work and causes the program to not function at all. Before the work-around it performs same as before with message of not connected to internet. After the work-around the main menu comes up but nothing happens when I double click anything.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

I did not update the package so if it used to work... it means something else changed, that I can't fix,... Or maybe you didn't apply the work-around correctly this time?

Revision history for this message
Xian75 (xian75) wrote :

I think I am doing it the exact same way as before. I copy what you had
typed "echo Internet connection - ok" without the " and paste it over
"$? != 0". I have tried typing it in manually also. I reinstalled from
synaptic multiple times and get the same result. Sucks because I liked
this and it worked great before the Ubuntu reinstall. Could font type
and size have anything to do with it?

On 01/17/2012 03:10 PM, Alin Andrei wrote:
> I did not update the package so if it used to work... it means something
> else changed, that I can't fix,... Or maybe you didn't apply the work-
> around correctly this time?
>

Revision history for this message
Alin Andrei (nilarimogard) wrote :

I've never said to replace "$? != " but to replace the "if" content for the "testConnection" function.

So make this:

function testConnection()
{
 testconnection=`wget --tries=3 --timeout=15 www.google.com -O /tmp/.testinternet &>/dev/null 2>&1`
 if [[ $? != 0 ]]; then
  echo "You are not connected to the Internet. Please check your Internet connection and try again."
  yad --class="Y-PPA-Manager" --name="Y PPA Manager" --window-icon="/usr/share/icons/hicolor/128x128/apps/y-ppa-manager.png" --form --title="Internet connection error" --text=" You don't seem to be connected to the Internet. \n This function needs a working internet connection (and working wget) " --button="gtk-ok:0"
 else
  echo Internet connection - ok
  rm /tmp/.testinternet > /dev/null 2>&1
 fi
}

Look like this:

function testConnection()
{
 echo Internet connection - ok
}

Revision history for this message
Xian75 (xian75) wrote :

Sorry I misunderstood. It works now. Thanks.

On 01/18/2012 02:39 PM, Alin Andrei wrote:
> I've never said to replace "$? != " but to replace the "if" content for
> the "testConnection" function.
>
> So make this:
>
> function testConnection()
> {
> testconnection=`wget --tries=3 --timeout=15 www.google.com -O /tmp/.testinternet&>/dev/null 2>&1`
> if [[ $? != 0 ]]; then
> echo "You are not connected to the Internet. Please check your Internet connection and try again."
> yad --class="Y-PPA-Manager" --name="Y PPA Manager" --window-icon="/usr/share/icons/hicolor/128x128/apps/y-ppa-manager.png" --form --title="Internet connection error" --text=" You don't seem to be connected to the Internet. \n This function needs a working internet connection (and working wget) " --button="gtk-ok:0"
> else
> echo Internet connection - ok
> rm /tmp/.testinternet> /dev/null 2>&1
> fi
> }
>
> Look like this:
>
>
> function testConnection()
> {
> echo Internet connection - ok
> }
>

Changed in y-ppa-manager:
status: New → Invalid
Revision history for this message
Woe Alex (alex-foster-3oy7mhlb) wrote :

Assume one was fighting to configure Tor, Y PPA Manager is stuck trying to use a proxy albeit unsuccessfully. What need to be edited to specify YPM not-use a proxy?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.