Page 1 of 1

Opkg and gpkg Update not working 1.5.10

Posted: Sat Jun 01, 2013 2:34 pm
by rsmith85
When I try to update the package lists using
Gpkg update
Command I get the following error on the command line:

Downloading package list for attitude_adjustment source... WARNING: Could not retrieve package list for attitude_adjustment

Downloading package list for gargoyle source... WARNING: Could not retrieve package list for gargoyle.

Currently connected to the Internet via the router, so it should be able to see the web.

Any thoughts? Router is TP1043.

Cheers

Rob

Re: Opkg and gpkg Update not working 1.5.10

Posted: Fri Oct 25, 2013 6:08 am
by jrierab
Same here. Gargoyle 1.5.11, TL-WR1043ND. :?

Re: Opkg and gpkg Update not working 1.5.10

Posted: Tue Oct 29, 2013 12:01 pm
by Eric
I've tested and this seems to work. Please post the contents of /etc/opkg.conf

Re: Opkg and gpkg Update not working 1.5.10

Posted: Mon Nov 04, 2013 4:03 am
by jrierab
Eric wrote:I've tested and this seems to work. Please post the contents of /etc/opkg.conf
Thank you Eric to take the time to look into it. The contents of the config file was good (pointing to the correct files), but I believe I may have found why it happens.

At least in my case, this only happens when the router is configured as a (wired) switch. Even when I have internet working on the PC connected to the router, it seems the router itself somehow does not have access to it (opkg, etc...).

I solved it configuring and downloading all needed packages in router mode and then changing network configuration to switch.

If you think this may point to a bug, I may test the exact configurations, when it happens and when doesn't.

Re: Opkg and gpkg Update not working 1.5.10

Posted: Sun Jul 13, 2014 9:31 am
by raeppli
Well, thank you for pointing to the right spot.
In my case the only problem was that there was no DNS configured.
So instead of changing the router to "router" configuration it may be easier to add DNS settings to /etc/resolv.conf file.
In my case nameserver was only localhost (127.0.0.1)...

There you should put someting like
nameserver <nameserver1>
nameserver <nameserver2>

To do that you can open an SSH connection and then put the lines accordingly by "vi /etc/resolv.conf".

Hope that helps the next guy who wants to have the right time on his openwrt.