728x90
반응형
우분투 24.04에서 snapd 비활성화 및 삭제 방법
테스트 환경
$ lsb_release -d
Description: Ubuntu 24.04.1 LTS
Snap 패키지 삭제
Snap 패키지 목록 확인
sudo snap list
No snaps are installed yet. Try 'snap install hello-world'.
Snapd 비활성화
스냅(snap) 서비스 비활성화
sudo systemctl disable --now snapd.socket
Removed "/etc/systemd/system/sockets.target.wants/snapd.socket".
sudo systemctl disable --now snapd.service
Removed "/etc/systemd/system/multi-user.target.wants/snapd.service".
sudo systemctl disable --now snapd.seeded.service
Removed "/etc/systemd/system/cloud-final.service.wants/snapd.seeded.service".
Removed "/etc/systemd/system/multi-user.target.wants/snapd.seeded.service".
스냅(snap) 패키지 목록 확인
- 패키지 이름 또는 패키지 이름의 부분 일치를 사용하여 패키지를 검색
dpkg -l snap
$ dpkg -l snap
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un snap <none> <none> (no description available)
스냅(snap) 패키지 삭제
sudo apt autoremove --purge -y snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
snapd* squashfs-tools* ubuntu-server-minimal*
0 upgraded, 0 newly installed, 3 to remove and 173 not upgraded.
After this operation, 111 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 83743 files and directories currently installed.)
Removing ubuntu-server-minimal (1.539.1) ...
Removing snapd (2.63.1+24.04) ...
Stopping 'snapd.service', but its triggering units are still active:
snapd.socket
Removing squashfs-tools (1:4.6.1-1build1) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
(Reading database ... 83632 files and directories currently installed.)
Purging configuration files for snapd (2.63.1+24.04) ...
rmdir: failed to remove '/etc/systemd/system/snapd.mounts.target.wants': No such file or directory
Discarding preserved snap namespaces
Final directory cleanup
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
728x90
반응형
'Linux Distribution' 카테고리의 다른 글
우분투에서 multipathd를 비활성화하는 방법 (0) | 2025.03.10 |
---|---|
우분투에서 시스템의 아키텍처를 확인하는 방법 (0) | 2025.03.10 |
우분투 24.04에서 polkitd 서비스 비활성화 및 제거하는 방법 (0) | 2025.03.09 |
우분투 24.04에서 Minikube를 활용하여 로컬 Kubernetes 클러스터를 구축하는 방법 (0) | 2025.03.08 |
systemctl mask와 apt-mark hold의 차이점 (0) | 2025.03.07 |