作为一个 Ubuntu 菜鸟,我安装和卸载了很多软件包,以试用它们。然而,几个月来,我犯了使用apt-get remove而不是的错误apt-get purge,我什至没有意识到它的存在。
有没有办法apt-get清除我卸载的每个包?我的系统充满了我不想要或不需要的来自数十个不同软件包的剩余文件。
为什么 bash 会声称文件不存在,但它显然存在?
$ ls -l a
-r-x------ 1 configurator configurator 3904 Dec 7 10:36 a
$ file a
a: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped
$ ./a
-bash: ./a: No such file or directory
Run Code Online (Sandbox Code Playgroud) 这个问题类似于Ubuntu 不断创建虚拟目录,但它是关于~/Snapshots目录的。我没有那个启动应用程序,我已经将 Ubuntu 的所有目录从那里移开了 - 我唯一找不到的是 Snapshots。它总是空的,看起来很没用。
我仅有的启动应用程序是 Google Chrome 和 Gnome Gmail Open Office Configurator。
我正在使用 Precise Pangolin,有时我会注意到我想安装的软件包存在http://us.archive.ubuntu.com/ubuntu/ hardy main于http://us.archive.ubuntu.com/ubuntu/ precise main. 我有两个相关的问题:
http://packages.ubuntu.com/hardy?)如果是这样,我也可以/etc/apt/sources.list像这样将坚固的来源添加到我的.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy main
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main
Run Code Online (Sandbox Code Playgroud)