Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: No Internet, Sudo/Internet-related programs hang in terminal (Read 584 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

No Internet, Sudo/Internet-related programs hang in terminal

Hello, all. I've come seeking a solution to a major problem I now have with Artix. Ever since a recent full system upgrade (pacman -Syu), my OS has been beset by a series of problems.

To be more specific, whenever I would log in, Network Settings (connman-gtk) would appear--or, rather, an empty window with only its title bar and filled below with whatever was behind the window before it started. After that, it would simply close, with its tray icon indicating no available Internet connection (bringing up the window would yield almost nothing at all in it, strangely--no options or anything else that I can remember).

The problems extend to the terminal: when I'd try to use a command via sudo, the command would hang--it wouldn't ask for a password; su works, but sudo produces the aforementioned effect. Trying to start any program related to or requiring in any way Internet connection (for example, the Epiphany browser) would also fail: sometimes, errors would be produced; most other times, the command would hang.

Sometimes, a certain combination--dbus-uuidgen  >| /etc/machine-id followed by the deletion of .Xauthority on root, followed by a reboot--would seem to help, but it was only rarely (i.e., Internet connection was restored only twice, and a reboot reverted the system to malfunction each time). I also read that that machine-id should not be changed carelessly, so I chose to avoid it--it did not appear to be the solution, anyway.

I've tried a clean install four times, now, each followed by a full system upgrade; none have worked. This latest time, I've tried uninstalling connman (thinking it was incompatible with whatever the system upgrade brought into my PC) to replace it with NetworkManager, but that does not run--it is reported as started but inactive.

(Please note, by the way, that I am currently using an Artix Live boot disc to compose this post; while in this environment, Internet connection works fine; pacman commands, including downloads, following chroot into the main drive are successful. The problem starts with a pacman -Syu and then a restart from a normal environment.)

Here is my PC's rc.log:
Spoiler (click to show/hide)

I would post more logs, but--lengthy as they are--they quickly exceed the post character count limit. If any further information is needed, please do not hesitate to ask--I would very much like to find a solution to this problem quickly. Thank you all, in advance.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #1
No one? Is my post in the wrong place? I'm sorry if so, but please do not ignore my request for help.


I have tried setting DNS in resolv.conf to something other than the gateway/loopback combo connman insisted on after a fifth reinstall (when that seemed to be the solution), along with setting the addresses in connman-gtk when I had the chance and setting the aforementioned file to immutable via chattr, but the system has gone back to occasionally allowing the Internet to connect.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #2
I'd try lts kernel first. And/or maybe downgrade crucial upgraded components. Also connman-gtk is obsolete, it may bring some troubles if autostarted.

 

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #3
I can replicate the connman-gtk error, but it's deprecated anyway, so consider either using the cli / something from the AUR
Though the other issues you mention seem to be very chaotic. Which ISO specifically are you using for the install? Are the SHA256 sum and signature correct? Have you tried using a different USB drive?

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #4
I'd try lts kernel first. And/or maybe downgrade crucial upgraded components. Also connman-gtk is obsolete, it may bring some troubles if autostarted.

I'm definitely more interested in the "or" side of your suggestion. I'd rather not try messing with the kernel (what you said sounds like replacing it) unless I know for sure it's absolutely necessary.

That being said, which crucial components should I be looking at? pacman -Syu upgraded a ton of things; I wouldn't know where to start.

I can replicate the connman-gtk error, but it's deprecated anyway, so consider either using the cli / something from the AUR
Though the other issues you mention seem to be very chaotic. Which ISO specifically are you using for the install? Are the SHA256 sum and signature correct? Have you tried using a different USB drive?
I can try cmst, as that looked good. I remember problems starting when there was some sort of conflict with connman-gtk, when trying to remove the latter. I can't do that now, as I'm posting from the live CD.

This CD--and therefore all installations it effected--was based on artix-xfce-openrc-20230814-x86_64; its SHA256 sum matches the sum on the site, and the output of gpg is the following:

Spoiler (click to show/hide)

That said, I'm now thinking that most of what I said in the original post only serves to illustrate the problem. For the most part, things work when connmand detects an Internet connection. From what I'm seeing now, connmand is reported to be stopped by rc-service--and I can't start it.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #5
I'd rather not try messing with the kernel (what you said sounds like replacing it)

No, you can install linux-lts and choose kernel on boot. You should search arch wiki for instructions for your current boot loader.

Also I'd suggest reading this https://wiki.artixlinux.org/Main/Troubleshooting and this https://wiki.archlinux.org/title/General_troubleshooting

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #6
I'd rather not try messing with the kernel (what you said sounds like replacing it)

No, you can install linux-lts and choose kernel on boot. You should search arch wiki for instructions for your current boot loader.

Also I'd suggest reading this https://wiki.artixlinux.org/Main/Troubleshooting and this https://wiki.archlinux.org/title/General_troubleshooting

Naturally, I've tried the first link--it's the logical choice. It is limited in scope, and does not address my problem. Perhaps you see relevance in one of the sections that I do not?

As for the second, it is intended for the users of Arch Linux--not Artix. I am extremely hesitant to go poking around blindly in an article of solutions to Arch Linux problems, trying them just as blindly in the hopes they don't make my Artix Linux problems worse before hoping they actually apply to my problem.

I don't mean to be rude, snippy, hostile, or otherwise uncivil, but I did offer logs and any other information in my first post. Please understand well that I have exhausted all article-based avenues of help (that don't involve direct interaction with people) that I could think of before first going to Reddit (and they've yet to say anything) and then coming here. If any information I could provide indicates that I should install a new kernel, I would do so in a heartbeat--I've been plagued by this problem since Tuesday, if not before. If my problems are directly referenced and clearly and specifically solved by the contents of either page you provided, I would not hesitate to use the provided solution.

EDIT: I've returned to my account, and the Internet's working. I wouldn't call this solved, however, as--like I've said before--connection is permitted randomly and infrequently. I did artix-chroot into the system while using the CD, however, to uninstall connman-gtk. I do not know if that was the solution...but I wonder if restarting will break my Internet connection again.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #7
Thing is - there's nothing in the log. What that guy said about LTS kernel or Arch in this instance is relevant and on point. You won't destroy anything by installing another kernel alongside just plain `linux` package, although if you're using nvidia proprietary drivers, you need to switch to nvidia-dkms package (which you should use regardless). Follow this tutorial https://github.com/korvahannu/arch-nvidia-drivers-installation-guide

So to reiterate remove nvidia package, install linux-lts + linux-lts-headers + nvidia-dkms, then on boot simply choose linux-lts as an option in grub. It is exactly the same process as with Arch. Make sure pacman repos are configured properly so that you pull linux-lts from Artix repositories

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #8
Well, your problem is vague and therefore doesn't have quick solution. Provided links is not for instant help, but for starting point in gaining more info. You should understand that most linux problems and its solutions is on affected users. If you are afraid to brick your system you should make full system backup I guess.

On your place I'd (again) try lts kernel first. Then I'd try cli-only session. Maybe full update your system from live media helps, did you try that? Maybe kernel log aka dmesg shows something.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #9
Just did an install on hardware from exactly the same ISO and updated. connman works fine and connects perfectly, though the connman-gtk problem still persists. So this is probably a hardware / driver problem, definitely try out linux-lts
Quote
As for the second, it is intended for the users of Arch Linux--not Artix.
The Artix wiki mentions the Arch wiki as a valid resource multiple times, the only difference would be between the init system commands / configs. (search for "arch wiki" on the pages linked)
Quote
EDIT: I've returned to my account, and the Internet's working. I wouldn't call this solved, however, as--like I've said before--connection is permitted randomly and infrequently
How did you connect? Did you use connmanctl or the XFCE panel applet?

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #10
Thing is - there's nothing in the log. What that guy said about LTS kernel or Arch in this instance is relevant and on point. You won't destroy anything by installing another kernel alongside just plain `linux` package, although if you're using nvidia proprietary drivers, you need to switch to nvidia-dkms package (which you should use regardless). Follow this tutorial https://github.com/korvahannu/arch-nvidia-drivers-installation-guide

So to reiterate remove nvidia package, install linux-lts + linux-lts-headers + nvidia-dkms, then on boot simply choose linux-lts as an option in grub. It is exactly the same process as with Arch. Make sure pacman repos are configured properly so that you pull linux-lts from Artix repositories


Understood--I will try his suggestion. However, I use an AMD GPU (Radeon RX 6950 XT); I was in the process of removing Nvidia-related packages (and through them, I hoped, their drivers) so that I could install more AMD-related things when I ran into dependency problems. Is nvidia-dkms needed though I'm using an AMD GPU?

Before I install the packages, please review my pacman.conf:

Spoiler (click to show/hide)

Well, your problem is vague and therefore doesn't have quick solution. Provided links is not for instant help, but for starting point in gaining more info. You should understand that most linux problems and its solutions is on affected users. If you are afraid to brick your system you should make full system backup I guess.

On your place I'd (again) try lts kernel first. Then I'd try cli-only session. Maybe full update your system from live media helps, did you try that? Maybe kernel log aka dmesg shows something.

I will try your original suggestion, as said. I also hope you'll forgive my strong wariness; multiple times in the past have I been led on wild goose chases by others ostensibly interested in helping me, only to find their suggestions were as ineffective as I'd suspected--and the "helpers" themselves permanently vanished after wasting tons of time.

You're also right--I do fear such a bricking, but not so much as what I just described, as my personal data is on another drive; I do think that any problems could be solved by reinstalling--my data and settings, for the most part, would easily be restored. It's just that last night was actually the fifth time I'd reinstalled Artix. "Nothing ventured, nothing gained", as they say.

Just did an install on hardware from exactly the same ISO and updated. connman works fine and connects perfectly, though the connman-gtk problem still persists. So this is probably a hardware / driver problem, definitely try out linux-lts
Quote
As for the second, it is intended for the users of Arch Linux--not Artix.
The Artix wiki mentions the Arch wiki as a valid resource multiple times, the only difference would be between the init system commands / configs. (search for "arch wiki" on the pages linked)
Quote
EDIT: I've returned to my account, and the Internet's working. I wouldn't call this solved, however, as--like I've said before--connection is permitted randomly and infrequently
How did you connect? Did you use connmanctl or the XFCE panel applet?

Connection was automatic; I didn't do anything myself. Would that have been connmanctl?

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #11
Quote
Connection was automatic; I didn't do anything myself. Would that have been connmanctl?
Oh, if you're on a wired connection, then it's neither :)
connman handles wired connections automatically

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #12
Quote
Connection was automatic; I didn't do anything myself. Would that have been connmanctl?
Oh, if you're on a wired connection, then it's neither :)
connman handles wired connections automatically
Yes, it is so--though my PC does have Wi-Fi and Bluetooth functionality, but both are disabled for the time being.

I would like to give Ambie's suggestion a try, but I am concerned about nvidia-dkms, using AMD as I told @Shoun2137 .

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #13
Then you don't have to do anything related to nvidia-dkms, simply install linux-lts, choose it at bootup and you're done.

Re: No Internet, Sudo/Internet-related programs hang in terminal

Reply #14
Then you don't have to do anything related to nvidia-dkms, simply install linux-lts, choose it at bootup and you're done.
It is done.

I have used /etc/default/grub to give myself ample time to make a choice from its menu (originally, it provided a perilously scant three or so seconds; at some point unknown to me, the GRUB_TIMEOUT value was set to 0). The Internet connection is established shortly after sign-in, and I have tested it with four reboots. Could I do anything else to ensure that this problem does not persist behind the scenes?

EDIT: After a night's sleep, I returned to my PC to find everything working fine. I think this matter can be marked solved.

To think it was Ambie's first-given solution that proved successful; Ambie, you have my thanks--and my apology for the difficulties, if you perceived any.