Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Install on Ubuntu 22.04 stuck by needrestart UI when apt-get install #130

Open
3 tasks done
gsq7474741 opened this issue Jun 10, 2024 · 2 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@gsq7474741
Copy link

gsq7474741 commented Jun 10, 2024

Server is up to date

  • My server is up-to-date and I'm using the latest version of this mod from this github.

I've followed the instructions

  • I've followed the instructions

Game Server Login Token

  • I'm using a valid Game Server Login Token or running on LAN

Operating System

Linux Ubuntu 22.04

Which mod are you playing

No mod

Are you trying to host online or on LAN?

Online on a cloud host Google, AWS, Azure etc (please specify host)

Metamod:Source Version

/

Metamod:Source Plugins loaded

/

CounterStrikeSharp Version

/

CounterStrikeSharp Plugins loaded

/

What is the bug

Install on Ubuntu 22.04 stuck by needrestart UI when apt-get install, i have to manually install the packages and press Enter when
"Which services should be restarted?" UI popped up。

in file install.sh, line 108:

	elif [ "${DISTRO_VERSION}" == "22.04" ]; then
		apt-get install -y -q dnsutils curl wget screen nano file tar bzip2 gzip unzip hostname bsdmainutils python3 util-linux xz-utils ca-certificates binutils bc jq tmux netcat lib32stdc++6 libsdl2-2.0-0:i386 distro-info lib32gcc-s1 steamcmd >/dev/null

Game console output

No response

Server log output

No response

Steps to reproduce

No response

@gsq7474741 gsq7474741 added the bug Something isn't working label Jun 10, 2024
@gsq7474741 gsq7474741 changed the title [Bug]: Install on Ubuntu 22.04 stuck by needstart UI when apt-get install [Bug]: Install on Ubuntu 22.04 stuck by needrestart UI when apt-get install Jun 10, 2024
@nickj609
Copy link
Contributor

@gsq7474741 , this issue appears to be specific to the Ubuntu 22.04 operating system rather than the line of code itself. Specifically, its an issue with the needrestart command, which is part of the apt-get upgrade process in Ubuntu. There are a couple of workarounds you might be able to do to fix the issue.

  1. Add your own config file in /etc/needrestart/conf.d/no-prompt.conf:

$nrconf{restart} = 'a';

or

  1. An update is made to the script to the script like so:

export NEEDRESTART_MODE=a
apt-get install -y -q dnsutils curl wget screen nano file tar bzip2 gzip unzip hostname bsdmainutils python3 util-linux xz-utils ca-certificates binutils bc jq tmux netcat lib32stdc++6 libsdl2-2.0-0:i386 distro-info lib32gcc-s1 steamcmd >/dev/null

@gsq7474741
Copy link
Author

@gsq7474741 , this issue appears to be specific to the Ubuntu 22.04 operating system rather than the line of code itself. Specifically, its an issue with the needrestart command, which is part of the apt-get upgrade process in Ubuntu. There are a couple of workarounds you might be able to do to fix the issue.

  1. Add your own config file in /etc/needrestart/conf.d/no-prompt.conf:

$nrconf{restart} = 'a';

or

  1. An update is made to the script to the script like so:

export NEEDRESTART_MODE=a

apt-get install -y -q dnsutils curl wget screen nano file tar bzip2 gzip unzip hostname bsdmainutils python3 util-linux xz-utils ca-certificates binutils bc jq tmux netcat lib32stdc++6 libsdl2-2.0-0:i386 distro-info lib32gcc-s1 steamcmd >/dev/null

Thanks for the reply,maybe we can fix this issue in next release.

And btw, will you support more cloud service provider like Aliyun Cloud, Tencent Cloud etc. in future version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants