2026-05-27 22:25:23

에러 발생으로 해결기

 

HW : Asus G731GW (i7-9th /2070)

SW : Ubuntu 24.04LTS

 

설치대상 : https://gitlab.com/asus-linux/asusctl/-/releases

 

에러 원문

{

sudo apt install -y \
    git \
    build-essential \
    cmake \
    pkg-config \
    clang \
    libclang-dev \
    libudev-dev \
    libdbus-1-dev \
    libfontconfig1-dev \
    libseat-dev \
    libssl-dev \
    libinput-dev \
    libsystemd-dev \
    curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.43.0-1ubuntu7.3).
build-essential is already the newest version (12.10ubuntu1).
cmake is already the newest version (3.28.3-1build7).
pkg-config is already the newest version (1.8.1-2build1).
pkg-config set to manually installed.
libssl-dev is already the newest version (3.0.13-0ubuntu3.9).
curl is already the newest version (8.5.0-2ubuntu10.9).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-18 : Depends: libllvm18 (= 1:18.1.3-1) but 1:18.1.3-1ubuntu1 is to be installed
            Depends: libclang1-18 (= 1:18.1.3-1) but 1:18.1.3-1ubuntu1 is to be installed
            Recommends: llvm-18-dev but it is not going to be installed
 libclang-18-dev : Depends: libclang1-18 (= 1:18.1.3-1) but 1:18.1.3-1ubuntu1 is to be installed
 libdbus-1-dev : Depends: libdbus-1-3 (= 1.14.10-4ubuntu4) but 1.14.10-4ubuntu4.1 is to be installed
 libinput-dev : Depends: libinput10 (= 1.25.0-1ubuntu2) but 1.25.0-1ubuntu3.4 is to be installed
                Depends: libwacom-dev (>= 0.20) but it is not going to be installed
 libsystemd-dev : Depends: libsystemd0 (= 255.4-1ubuntu8.14) but 255.4-1ubuntu8.15 is to be installed
 libudev-dev : Depends: libudev1 (= 255.4-1ubuntu8.14) but 255.4-1ubuntu8.15 is to be installed
 zlib1g-dev : Depends: zlib1g (= 1:1.3.dfsg-3.1ubuntu2) but 1:1.3.dfsg-3.1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

}

 

 

버전을 맞추기 위한 수정

/etc/apt/sources.list.d/ubuntu.sources

요 위치에 수정을 해야합니다.


Suites: noble

요렇게 돼있는걸 주석처리하고

Suites: noble noble-updates noble-backports

입력해줍니다.

 

cat  /etc/apt/sources.list.d/ubuntu.sources

Types: deb
URIs: http://kr.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
#Suites: noble
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

 

우분투는

noble           -> 최초 릴리즈
noble-updates   -> 버그 수정/패키지 업데이트
noble-security  -> 보안 패치

형태인데

안맞았었네요.

 

sudo apt update & upgrade -y

하고 다시 설치하면

sudo apt install \
    git \
    build-essential \
    cmake \
    pkg-config \
    libudev-dev \
    libdbus-1-dev \
    libfontconfig1-dev \
    libseat-dev \
    libssl-dev \
    zlib1g-dev \
    cargo

잘 됩니다.

 

저는 conda를 쓰고있어서 빌드를 위해 꺼주고

 

conda deactivate

cd ~/Downloads
git clone https://gitlab.com/asus-linux/asusctl.git
cd asusctl

해서

make 해주면

 

버전에러가 또 났네요...

 

git tag

하면

1.0.2

1.0.3

1.0.4

1.1.0

1.1.1

1.1.2

아래로 줄줄이 뜹니다.

 

 

master 랑 slint가 안맞습니다.

~/Downloads/asusctl$ ls
asusctl          deny.toml                      rog-aura
asusd            design-patterns.md             rog-control-center
asusd-user       distro-packaging               rog-dbus
asus-shutdown    dmi-id                         rog-platform
Cargo.lock       extra                          rog-profiles
Cargo.toml       GPU_MODE_SWITCHING_SUMMARY.md  rog-scsi
CHANGELOG.md     LICENSE                        rog-slash
config-traits    Makefile                       rustfmt.toml
CONTRIBUTING.md  MANUAL.md                      rust-toolchain
Cranky.toml      README.md                      simulators
data             rog-anime

파일 확인하고

git checkout 3.7.1

cargo clean

cargo build --release

 

하고 다시 빌드 하니까

 

   Compiling asus-notify v3.0.1 (/home/ubunsv/Downloads/asusctl/asus-notify)
    Finished release [optimized] target(s) in 1m 28s

잘 됐네요.

 

cat /etc/systemd/system/battery-limit.service 
[Unit]
Description=Set battery charge limit
After=systemd-modules-load.service

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo 55 > /sys/class/power_supply/BAT0/charge_control_end_threshold'

[Install]
WantedBy=multi-user.target

 

 

55퍼로 잘 됐습니다.

 

asusctl -c 55

만 써도 됩니다!

저는 시즈모드 박고 쓸꺼라 55퍼에요.

 

 

'기타 잡다한거 내용 정리(SSH,sftp등)' 카테고리의 다른 글

USB 포맷 불가시  (0) 2026.05.26
SIRIL 별 사진 스태킹  (0) 2026.01.19
맥북 휴지통 안비워질때  (0) 2025.12.18
Mac-Vscode-Apk 수정및 빌드 밑작업  (0) 2025.12.11
맥 용량 정리  (0) 2025.11.24