Page 1 of 1

MXPI says "no internet available"

Posted: Sat Mar 11, 2023 12:35 pm
by shmu26
Although I am getting updates, and successfully installing them, when I open MXPI and try to manually install a package, I get an error message saying:

Code: Select all

Internet is not available, won't be able to download the list of packages

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 12:47 pm
by Adrian
What version do you use?

MX Package installer checks first if you can access https://mxrepo.com and then as a backup https://google.com, so you probably cannot hit mxrepo.com for some reason, if you can't then the program cannot install packages.

If you messed up with your router or internet options then everything is possible...

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 12:52 pm
by shmu26
Strangely, in "About" it does not display the version.
In about/changelog I see:
mx-packageinstaller (23.3) mx

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 12:57 pm
by shmu26
Adrian wrote: Sat Mar 11, 2023 12:47 pm If you messed up with your router or internet options then everything is possible...
Well, it looks like my proxy might be blocking the mx site with the packages, so I will try to investigate and troubleshoot that, on my end.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:09 pm
by shmu26
The IT department says they see no relevant blockage of internet traffic.
I tried switching my mirror to Salt Lake City, but to no avail.
Any ideas?

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:21 pm
by Adrian
It doesn't matter what you change, the program checks two addresses: https://mxrepo.com and then https://google.com
If it cannot hit those addresses it reports it cannot detect the internet, you can add "skiponlinecheck=true" in ~/.config/MX-Linux/mx-packageinstaller.conf
I added that option because I'm not interested in troubleshooting people's networks...

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:28 pm
by Eadwine Rose
If you boot using live. Does that have a connection?

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:31 pm
by j2mcgreg
Right click on the Network icon in the panel --> click on Edit Connections --> double click on your Wi-Fi connection --> under the General tab, make sure that "All users may connect to this network" is selected.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:35 pm
by shmu26
j2mcgreg wrote: Sat Mar 11, 2023 1:31 pm Right click on the Network icon in the panel --> click on Edit Connections --> double click on your Wi-Fi connection --> under the General tab, make sure that "All users may connect to this network" is selected.
It's actually a wired connection, but yes, "all users" is ticked.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:37 pm
by shmu26
Adrian wrote: Sat Mar 11, 2023 1:21 pm the program checks two addresses: https://mxrepo.com and then https://google.com
I can click on those links in my browser and the url opens correctly.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:39 pm
by dolphin_oracle
Can you ping them?

I ask because my son’s school recently blocked ping.

Using the switch, Adrian suggested will bypass the check entirely

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:45 pm
by shmu26
I have a root certificate that I need in order to access internet on my proxy, and I think that MXPI is maybe not reading that certificate correctly.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:46 pm
by shmu26
dolphin_oracle wrote: Sat Mar 11, 2023 1:39 pm Can you ping them?

I ask because my son’s school recently blocked ping.

Using the switch, Adrian suggested will bypass the check entirely
They ping correctly.
I tried creating the config file and pasting in the line that Adrian suggested but it didn't help.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:51 pm
by Eadwine Rose
Solved I see? What was the problem?

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:52 pm
by shmu26
Eadwine Rose wrote: Sat Mar 11, 2023 1:51 pm Solved I see? What was the problem?
Not solved yet. I can ping the sites, but MXPI is still not working.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 1:53 pm
by Eadwine Rose
Then why did you mark the thread?

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 2:12 pm
by Adrian
shmu26 wrote: Sat Mar 11, 2023 1:46 pm
dolphin_oracle wrote: Sat Mar 11, 2023 1:39 pm Can you ping them?

I ask because my son’s school recently blocked ping.

Using the switch, Adrian suggested will bypass the check entirely
They ping correctly.
I tried creating the config file and pasting in the line that Adrian suggested but it didn't help.
Sorry, I think the config file is read from /root/.config/MX-Linux/mx-packageinstaller.conf (it might depend how you launch the program), so add the "skiponlinecheck=true" there too.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 2:24 pm
by shmu26
Eadwine Rose wrote: Sat Mar 11, 2023 1:53 pm Then why did you mark the thread?
Good question. Maybe I marked it accidentally, or maybe someone else marked it?
In any case, lemme try Adrian's updated suggestion, and then I will unmark it if necessary...

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 2:32 pm
by shmu26
Adrian wrote: Sat Mar 11, 2023 2:12 pm the config file is read from /root/.config/MX-Linux/mx-packageinstaller.conf (it might depend how you launch the program), so add the "skiponlinecheck=true" there too.
That fixed it. Thanks!

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 2:51 pm
by Adrian
shmu26 wrote: Sat Mar 11, 2023 2:32 pm
Adrian wrote: Sat Mar 11, 2023 2:12 pm the config file is read from /root/.config/MX-Linux/mx-packageinstaller.conf (it might depend how you launch the program), so add the "skiponlinecheck=true" there too.
That fixed it. Thanks!
You are welcome, I have one more request from me, can you please remove that setting and try a new build of MX PackageInstaller where I try to detect the proxy?
If it doesn't work, please let me know and of course, add back the setting in the .conf file

The build is our github repo:
https://github.com/MX-Linux/mx-packagei ... _amd64.deb

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 3:08 pm
by shmu26
Adrian wrote: Sat Mar 11, 2023 2:51 pm You are welcome, I have one more request from me, can you please remove that setting and try a new build of MX PackageInstaller where I try to detect the proxy?
If it doesn't work, please let me know and of course, add back the setting in the .conf file

The build is our github repo:
https://github.com/MX-Linux/mx-packagei ... _amd64.deb
Will do, after my system image backup finishes.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 4:09 pm
by shmu26
Adrian wrote: Sat Mar 11, 2023 2:51 pm
shmu26 wrote: Sat Mar 11, 2023 2:32 pm
Adrian wrote: Sat Mar 11, 2023 2:12 pm the config file is read from /root/.config/MX-Linux/mx-packageinstaller.conf (it might depend how you launch the program), so add the "skiponlinecheck=true" there too.
That fixed it. Thanks!
You are welcome, I have one more request from me, can you please remove that setting and try a new build of MX PackageInstaller where I try to detect the proxy?
If it doesn't work, please let me know and of course, add back the setting in the .conf file

The build is our github repo:
https://github.com/MX-Linux/mx-packagei ... _amd64.deb
@Adrian This is weird but I was unable to reproduce the issue after deleting

Code: Select all

skiponlinecheck=true
from the config file. I deleted it both in home and in root, and I rebooted, and the MXPI is now working as expected even without skipping the check. 9_9
I mean, the old MXPI is working, the same one I was using before. I didn't even download the new build.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 4:10 pm
by Adrian
Using the old build?

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 4:12 pm
by shmu26
Yes.

Re: MXPI says "no internet available"

Posted: Sat Mar 11, 2023 4:14 pm
by Adrian
OK, either the issue was fixed somehow by the reboot or you forgot that skiponlinecheck on one of the .conf file (either on root or the home directory)
In any case I'm pushing a change to mx-packageinstaller, mx-repo-manager, and mx-codecs that should probably help people who are using proxies.