Linux Undo apt get remove open*ubuntu 12.04
我在ec2上运行Linux实例,图像的快照排序被禁用 试图从系统中卸载open jdk时。我愚蠢地执行命令 sudo容易打开* 它开始删除许多包,所以我通过CTRL+c停止了这个过程 我做了两次:Linux Undo apt get remove open*ubuntu 12.04,linux,ubuntu,amazon-ec2,Linux,Ubuntu,Amazon Ec2,我在ec2上运行Linux实例,图像的快照排序被禁用 试图从系统中卸载open jdk时。我愚蠢地执行命令 sudo容易打开* 它开始删除许多包,所以我通过CTRL+c停止了这个过程 我做了两次: sudo容易打开* sudo-apt-get-remove-openjdk* 我在两者之间停止了进程(CTRL+c) 现在我看到我的另一个应用程序不工作了,因为包被删除了 请告诉我,我怎样才能回到国家之前,apt得到删除 提前感谢。在使用日志文件时,您也可以“手动”撤消,在花费数小时之前,有一个操
- sudo容易打开*
- sudo-apt-get-remove-openjdk*
提前感谢。在使用日志文件时,您也可以“手动”撤消,在花费数小时之前,有一个操作值得尝试:
apt get-f install
编辑:从debian的手册页:
我运行了上面的menthioned命令,得到了这个输出“读取软件包列表…完成构建依赖关系树读取状态信息…完成0升级,0新安装,0删除,68未升级”。但是什么都没有发生,我仍然处于相同的状态。@user2058780 Hm,然后,请提供一个因移除而失败的示例。是不是你没有通过apt安装的东西?
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a
likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual
intervention (which usually means using dselect(1) or dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an
error in some situations. Configuration Item: APT::Get::Fix-Broken.