相关疑难解决方法(0)

apt-get install with '-'(减号/连字符)删除包

我正在寻找一些包 ( nautilus-terminal),并且不小心这样做了:

$ sudo apt-get install nautilus-
Reading package lists... Done                                                                                                                                                                                                 
Building dependency tree                                                                                                                                                                                                      
Reading state information... Done                                                                                                                                                                                             
The following packages were automatically installed and are no longer required:                                                                                                                                               
  apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic                                                                      
Use 'sudo apt autoremove' to remove them.                                                                                                                                                                                     
The following packages will be REMOVED:                                                                                                                                                                                       
  gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop                                                                                                                                              
0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded.                                                                                                                                                               
After this operation, 2 031 kB disk space will be freed.                                                                                                                                                                      
Do …
Run Code Online (Sandbox Code Playgroud)

uninstall command-line apt

22
推荐指数
1
解决办法
2459
查看次数

为什么 apt-get install python3 带有尾随连字符删除了很多包?

在使用sudo apt-get install命令安装某些东西时,我不小心接受了命令

sudo apt-get install python3-
Run Code Online (Sandbox Code Playgroud)

(是的,我知道接受这一点很愚蠢,但我做了很多,我只是继续点击y)。

通过执行命令,我删除了整个 Ubuntu 可视化桌面(我只有普通的 shell,但我现在恢复了可视化桌面)。我不知道我是否只是愚蠢,但我想提醒您不要使用该命令。

如果您能向我解释为什么会发生所发生的事情,请随时向我解释。

command-line apt

7
推荐指数
2
解决办法
1136
查看次数

标签 统计

apt ×2

command-line ×2

uninstall ×1