Why do errors occur when installing packages for MT-300A?

Hi all,

I use 3 pieces GLiNet MT300A routers. They have been working perfectly for 7 years and consume very little energy: less than 0.5 watts!
They have “OpenWRT Chaos Calmer 15.05 r47065 / LuCI for-15.05 branch” installed in them.

I sometimes need to install new packages, and previously this procedure was successful without problems.

However, this time the attempt to install packages ended with strange errors.
Why is this happening and how to fix it?

Error log in the attachment
Strange_errors_when_installing_packages.log.zip (592 Bytes)

It seems that the link to the software repository is no longer usable, openwrt 15.05 is too old, and the openwrt community is not doing any maintenance on it.
If you only want it to work stably, I recommend that you do not install any software packages for it, the time difference, any software package can cause the device to not work.
You can also upgrade to the latest openwrt firmware, which, of course, also puts the stability of the device at risk.

Hi,

I have redirect http://www.gl-inet.com/openwrt/xxxxx to https://fw.gl-inet.com/openwrt/xxxxx

Please try again.

root@GL-AXT1800:~# wget http://www.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz
--2023-02-14 12:41:30--  http://www.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz
Resolving www.gl-inet.com... 13.35.166.52, 13.35.166.76, 13.35.166.9, ...
Connecting to www.gl-inet.com|13.35.166.52|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz [following]
--2023-02-14 12:41:30--  https://www.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz
Connecting to www.gl-inet.com|13.35.166.52|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://fw.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz [following]
--2023-02-14 12:41:31--  https://fw.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz
Resolving fw.gl-inet.com... 13.35.24.32, 13.35.24.87, 13.35.24.97, ...
Connecting to fw.gl-inet.com|13.35.24.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 138148 (135K) [binary/octet-stream]
Saving to: 'Packages.gz'

Packages.gz              100%[==================================>] 134.91K   271KB/s    in 0.5s

2023-02-14 12:41:33 (271 KB/s) - 'Packages.gz' saved [138148/138148]

Dear luochongjun, oh yes, I understand you perfectly :slight_smile:
But I still use this old version 15.05 of OpenWRT on purpose, because it behaves in the best way in work on three instances of MT-300A.
My repeated attempts to upgrade to various new versions of OpenWRT and LEDE, unfortunately, ended with unstable operation of the MT-300A.
So I went back to version 15.05, which still works excellently, and I don’t want to risk changing and updating anymore.
I just need to restore access to the repository of this old version in order to add the necessary packages sometimes.
It is a pity that this old repository was disabled, it is very still needed for use.

Dear Leo, I didn’t quite understand what I need to do to get the previous access to the old repository on 15.05 :upside_down_face:
Please explain in more detail.

Hi Odol,

Just try to install packages again.

According to leo, you can modify the router’s software repository configuration file /etc/opkg-distfeeds.conf, replacing www.gl-inet.com with fw.gl-inet.com

OK, in order to make changes to the configuration file /etc/opkg-distfeeds.conf I have to connect to the router via ssh, right?

ssh root@192.168.8.1

But unfortunately I get this error:

Unable to negotiate with 192.168.8.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,kexguess2@matt.ucc.asn.au

So, I managed to replace www.gl-inet.com with fw.gl-inet.com with fw.gl-inet.com through interface Luci.
But unfortunately, now there are other repository access errors.
They are attached in the attachment.

New_strange_errors_when_installing_packages.log.zip (599 Bytes)

You can try annotating the signature options with a # in /etc/opkg.conf and try again.

I can’t do it because I can’t connect via ssh due to this error:

ssh root@192.168.8.1

Unable to negotiate with 192.168.8.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,kexguess2@matt.ucc.asn.au

The ssh tutorial has a solution for similar error, hope it help you. Or try another ssh client, e.g. Bitvise.

Thank you, I got access to the router via ssh in this way

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 root@192.168.8.1

However, the errors have not disappeared, and I still cannot update the package list or install the desired package :confused:

Could you take decisive action and fully restore the repository to work reliably, as in previous years?
That me do not need to make corrections to the config files.
I have as many as three of these routers :smiley:

New_2_strange_errors_when_installing_packages.log.zip (508 Bytes)

There seems to be an extra dot at the end of each line of your file.
Can you show the contents of your current /etc/opkg-distfeeds.conf file?

Yes, of course.
But this configuration file in my router is in a slightly different place
Here is its content:

cat /etc/opkg/distfeeds.conf 
src/gz chaos_calmer_base http://fw.gl-inet.com/openwrt/ramips/2.263/packages/base
src/gz chaos_calmer_luci http://fw.gl-inet.com/openwrt/ramips/2.263/packages/luci
src/gz chaos_calmer_management http://fw.gl-inet.com/openwrt/ramips/2.263/packages/management
src/gz chaos_calmer_packages http://fw.gl-inet.com/openwrt/ramips/2.263/packages/packages
src/gz chaos_calmer_routing http://fw.gl-inet.com/openwrt/ramips/2.263/packages/routing
src/gz chaos_calmer_telephony http://fw.gl-inet.com/openwrt/ramips/2.263/packages/telephony
src/gz chaos_calmer_oldpackages http://fw.gl-inet.com/openwrt/ramips/2.263/packages/oldpackages
src/gz chaos_calmer_node http://fw.gl-inet.com/openwrt/ramips/2.263/packages/noderoot@FAVOURITEROUTER:/etc/opkg# 

It is also visible in the LUCI interface (see attachment)
And pay attention: they differ for some reason - is this normal?

Upd.
Also executing the package list update command:

opkg update
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/luci/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/management/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/packages/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/routing/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/telephony/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/oldpackages/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Downloading http://fw.gl-inet.com/openwrt/ramips/2.263/packages/node/Packages.gz.
wget: server returned error: HTTP/1.1 400 Bad Request
Collected errors:
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/base/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/luci/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/management/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/routing/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/telephony/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/oldpackages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://fw.gl-inet.com/openwrt/ramips/2.263/packages/node/Packages.gz, wget returned 1.

I find a MT300A with v2.265 for testing.
It works when I change the URL to http://s3.us-east-2.amazonaws.com/download.gl-inet.com, please try it.

Grandiose! Now it worked out, and I got access to the repository! :joy:
Leo, thank you so much for your great and effective work! :beer: :beer:

Leo, tell me please, is this new storage -
http://s3.us-east-2.amazonaws.com/download.gl-inet.com
is only temporary, and then it gets canceled?

I am glad it worked out. :grinning:

Not temporary, it is long term.

Well. I also additionally have important suggestion -

  1. Please, return this repository for 2.x to its previous location:
    http://download.gl-inet.com/releases/packages-2.x/ramips/base
    which is now empty for some reason.

And then, probably, me will no longer need to make edits to the config file for each router?

And I intended to install a package to control user access to the Internet, which was probably named luci-access-control or luci-app-access-control or something similar.
But unfortunately, I didn’t find it in this repository.
How can this problem be solved?

Where did you find the url, I can’t find the packages-2.x folder.

Still have to trouble you manually change. It looks like the backend can’t handle http, only https.

It looks like MT300A doesn’t have these packages, so it won’t install. You can make a new thread and see if others can help.

Ok, Leo, then please explain why there was no need to make edits to the config file for MT300A before to access its old repository.