Opkg and gpkg Update not working 1.5.10

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
rsmith85
Posts: 5
Joined: Fri Feb 01, 2013 12:18 pm

Opkg and gpkg Update not working 1.5.10

Post 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

jrierab
Posts: 5
Joined: Sun Jan 20, 2013 6:32 pm

Re: Opkg and gpkg Update not working 1.5.10

Post by jrierab »

Same here. Gargoyle 1.5.11, TL-WR1043ND. :?

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Opkg and gpkg Update not working 1.5.10

Post by Eric »

I've tested and this seems to work. Please post the contents of /etc/opkg.conf

jrierab
Posts: 5
Joined: Sun Jan 20, 2013 6:32 pm

Re: Opkg and gpkg Update not working 1.5.10

Post 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.

raeppli
Posts: 1
Joined: Sun Jul 13, 2014 9:24 am

Re: Opkg and gpkg Update not working 1.5.10

Post 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.

Post Reply