網站首頁 編程語言 正文
Centos error: cannot remove “core“: snap “core“ is not removable: snap is used by the model
作者:從零開始的數據猿 更新時間: 2022-05-13 編程語言當我在Centos7.6使用snap remove core時報錯,error: cannot remove "core": snap "core" is not removable: snap is used by the model
解決辦法
(1) use 'df' to find the mount point of "/snap/core/*"
(2) stop the snap service
(3) umount /snap/core/xxxx
(4) start snap service
(5) use snap remove core - which then worked
Here’s the abbreviated output
$ snap list
Name Version Rev Developer Notes
core 16-2.26.14 2462 canonical -
$ df # use output to find the mount point "/snap/core/xxxx"
$ sudo umount /snap/core/2462 # this failed on my system, unlike poster above
umount: /snap/core/2462: target is busy
...
$ sudo systemctl stop snapd
Warning: Stopping snapd.service, but it can still be activated by: snapd.socket
$ sudo umount /snap/core/2462 # umount worked with snapd stopped
$ sudo systemctl start snapd # start snapd again in order to use 'snap remove' command
$ df # verify that starting the snap service didn't remount "core" (it didn't)
...
{"/snap/core/xxxx" not listed}
...
$ sudo snap remove core # success!
core removed
---
Verify Removal:
$ sudo snap list
No snaps are installed yet. Try "snap install hello-world"
$ ls -l /snap/core
...
{nothing listed}
來源:https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1589210
原文鏈接:https://nmydt.blog.csdn.net/article/details/124323495
相關推薦
- 2022-08-13 Kafka復習計劃 - Kafka基礎知識以及集群參方案和參數
- 2022-07-11 Python內建屬性getattribute攔截器使用詳解_python
- 2022-09-03 解決Python報錯問題[SSL:?SSLV3_ALERT_HANDSHAKE_FAILURE]_p
- 2022-06-22 android選項卡TabHost功能用法詳解_Android
- 2022-10-14 VSC下編寫Makefile文件時,在終端運行make clean命令時報錯的解決方法
- 2022-09-24 win2003下FTP服務器搭建教程_FTP服務器
- 2022-03-16 ASP.NET?Core開發Docker部署_基礎應用
- 2022-02-13 搞明白this指向,走遍天下都不怕(一)
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支