網站首頁 編程語言 正文
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-12-29 React中事件的類型定義方式_React
- 2022-02-11 SQL中ISNULL函數使用介紹_數據庫其它
- 2022-12-22 React?Hooks?-?useContetx和useReducer的使用實例詳解_React
- 2022-12-24 c++類成員函數如何做函數參數_C 語言
- 2022-05-08 Python?matplotlib實現散點圖的繪制_python
- 2023-11-11 Jetson nano 安裝swapfile 解決Cannot allocate memory 問題
- 2022-03-30 Golang中omitempty關鍵字的具體實現_Golang
- 2022-05-11 使用kettle的數據庫增量備份與全量備份
- 最近更新
-
- 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同步修改后的遠程分支