Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Stuck at Starting Hostname Service...

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

[Solved] Stuck at Starting Hostname Service...

#1 Post by DeadTOm76 »

This is after a fresh installation of Debian Bullseye, the system hangs at "Starting Hostname Service..." with no errors.

If I ctrl-alt-F5 and log into the console, and try a "systemctl start hostname", it returns "unit hostname.service not found".

Any idea where I go from here?
Last edited by DeadTOm76 on 2023-01-07 01:40, edited 1 time in total.

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1093
Joined: 2021-03-30 20:08
Has thanked: 188 times
Been thanked: 244 times

Re: Stuck at Starting Hostname Service...

#2 Post by donald »

Did you give the system a hostname?

If not,

Code: Select all

$ hostname newhostname
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

Re: Stuck at Starting Hostname Service...

#3 Post by DeadTOm76 »

donald wrote: 2023-01-06 23:57 Did you give the system a hostname?
Yes, verified that the correct hostname is in /etc/hostname and /etc/hosts. Should I run the command anyway?

User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

Re: Stuck at Starting Hostname Service...

#4 Post by DeadTOm76 »

I tried it, no dice.

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1093
Joined: 2021-03-30 20:08
Has thanked: 188 times
Been thanked: 244 times

Re: Stuck at Starting Hostname Service...

#5 Post by donald »

When you run hostnamectl from the command line does it respond with hostname, icon-name and so forth?

Looks like this:

Code: Select all

 donald@domaster ~ $ hostnamectl 
   Static hostname: domaster
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
           Boot ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Operating System: Debian GNU/Linux 11 (bullseye)
            Kernel: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      Architecture: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

Re: Stuck at Starting Hostname Service...

#6 Post by DeadTOm76 »

donald wrote: 2023-01-07 00:14 When you run hostnamectl from the command line does it respond with hostname, icon-name and so forth?

Looks like this:...
Yes, it's returning all the right information.

CwF
Global Moderator
Global Moderator
Posts: 2715
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Stuck at Starting Hostname Service...

#7 Post by CwF »

DeadTOm76 wrote: 2023-01-06 23:54 If I ctrl-alt-F5 and log into the console, and try a "systemctl start hostname", it returns "unit hostname.service not found".
This suggest you getting a prompt, and what does it list as the domain?
Is the hang on "Starting Hostname Service..." or perhaps the following line returning the status of an interface. I'd expect a 'fail to raise' error on the next line. Have you waited for a timeout?

User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

Re: Stuck at Starting Hostname Service...

#8 Post by DeadTOm76 »

Fixed it by adding "nomodeset" to Grub.

Finally up and running.

Thanks!

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1093
Joined: 2021-03-30 20:08
Has thanked: 188 times
Been thanked: 244 times

Re: [Solved] Stuck at Starting Hostname Service...

#9 Post by donald »

Ahhh, good fix. Please add a [solved] to the thread subject to help future searchers. Thank you.
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Solved] Stuck at Starting Hostname Service...

#10 Post by p.H »

No, "nomodeset" is never a good fix and is merely a workaround which degrades graphic resolution and performance because it disables kernel mode-setting and acceleration.
What is or are the GPU(s) ?

Code: Select all

lspci -nnkd ::0300 ; lspci -nnkd ::0302 ; lspci -nnkd ::0380
Are they supported by the running kernel ?
If AMD/ATI Radeon, is the package firmware-amd-graphics installed (required) ?
If Intel or Nvidia and using the driver "nouveau", is the package firmware-misc-nonfree installed (may help) ?

User avatar
DeadTOm76
Posts: 54
Joined: 2017-09-22 15:36
Location: USA
XMMP/Jabber: deadtom@deadtom.me

Re: [Solved] Stuck at Starting Hostname Service...

#11 Post by DeadTOm76 »

p.H wrote: 2023-01-07 11:29 No, "nomodeset" is never a good fix and is merely a workaround which degrades graphic resolution and performance because it disables kernel mode-setting and acceleration.
What is or are the GPU(s) ?

Code: Select all

lspci -nnkd ::0300 ; lspci -nnkd ::0302 ; lspci -nnkd ::0380
Are they supported by the running kernel ?
If AMD/ATI Radeon, is the package firmware-amd-graphics installed (required) ?
If Intel or Nvidia and using the driver "nouveau", is the package firmware-misc-nonfree installed (may help) ?
I wondered about this, and continued to have graphics problems after this.

I'm using an AMD Radeon RX 6600.

Code: Select all

12:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [1002:73ff] (rev c7)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:5022]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
Using the shipped kernel (5.10), amdgpu refused to load. After hours of tinkering with it unsuccessfully, I installed kernel 6.0 from backports. This resolved all the graphics issues I was having, and no need for nomodeset.

So far, so good.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Solved] Stuck at Starting Hostname Service...

#12 Post by p.H »

DeadTOm76 wrote: 2023-01-07 17:25 Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [1002:73ff] (rev c7)
It appears that this GPU is not supported by kernel 5.10.

Code: Select all

/sbin/modinfo -k 5.10.0-20-amd64 -F alias amdgpu | grep 'pci:v00001002d000073FF' || echo 'no match'
returns no match.

PS: No need to quote the whole previous post.

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1093
Joined: 2021-03-30 20:08
Has thanked: 188 times
Been thanked: 244 times

Re: [Solved] Stuck at Starting Hostname Service...

#13 Post by donald »

p.H wrote: 2023-01-07 20:36
DeadTOm76 wrote: 2023-01-07 17:25 Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [1002:73ff] (rev c7)
It appears that this GPU is not supported by kernel 5.10.

Code: Select all

/sbin/modinfo -k 5.10.0-20-amd64 -F alias amdgpu | grep 'pci:v00001002d000073FF' || echo 'no match'
returns no match.
I looked into this last night and found most complaints and fixes around this were Nvidia card users, good to knowledge that it is the GPU and not just a brand of card.
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Solved] Stuck at Starting Hostname Service...

#14 Post by p.H »

p.H wrote: 2023-01-07 20:36 It appears that this GPU is not supported by kernel 5.10.
Thinking twice, nomodeset should not have any effect if no KMS driver is available for this GPU...

Post Reply