在 Linux Mint/Ubuntu 上进行 apt-get 升级后恢复系统更改
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9917456/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Revert system changes after apt-get upgrade on Linux Mint/Ubuntu
提问by zbyszek26104
I'm using Linux Mint 11 64 bit. I needed some packages to install newest software and found them in ubuntu repositories.
To do this I added
我正在使用 Linux Mint 11 64 位。我需要一些软件包来安装最新的软件,并在 ubuntu 存储库中找到它们。
为此,我添加了
deb http://security.ubuntu.com/ubuntu oneiric-security main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ oneiric main
to my
给我的
/etc/apt/sources.list
.
/etc/apt/sources.list
.
I made automatically sudo apt-get update + sudo apt-get upgrade and it installed ~900 packages from that repository (and removed some of my Mint too...). My system changed to Ubuntu-like dist, installed new graphical interface - probably GNOME3 (I liked my GNOME2 really much..). I am now unable to start GNOME2 at all.
Is there any way to undo this changes? I've removed that lines from sources.list, tried
我自动 sudo apt-get update + sudo apt-get upgrade 并且它从该存储库中安装了大约 900 个软件包(并且也删除了我的一些 Mint ......)。我的系统更改为类似 Ubuntu 的 dist,安装了新的图形界面 - 可能是 GNOME3(我非常喜欢我的 GNOME2..)。我现在根本无法启动 GNOME2。
有什么办法可以撤消此更改吗?我已经从sources.list中删除了那几行,试过
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade但它没有帮助。
谢谢。
采纳答案by Andrew Tomazos
No sorry, you are pretty screwed. You now have newer versions of most of the packages, so even if you remove the oneiric repo it will still opt to keep the new ones.
不,对不起,你太操蛋了。您现在拥有大多数软件包的较新版本,因此即使您删除了 oneiric 存储库,它仍会选择保留新版本。
The best option is to backup and reinstall.
最好的选择是备份并重新安装。
回答by TryTryAgain
You can use ppa-purge - install with sudo apt-get install ppa-purge
您可以使用 ppa-purge - 安装 sudo apt-get install ppa-purge
See this articlefor more info
查看这篇文章了解更多信息
That will roll back your packages so it is safe to remove the repo and keep the software and your system wont blow up.
这将回滚您的软件包,因此可以安全地删除 repo 并保持软件和您的系统不会爆炸。
EDIT (based on user1131467's comment): for full-blown repositories, these answers will help, but it is much more manual:
编辑(基于 user1131467 的评论):对于成熟的存储库,这些答案会有所帮助,但它更手动:
https://askubuntu.com/a/3675/38901and
https://askubuntu.com/a/3675/38901和