昨天我安装了 monodevelop,不得不用 c# 写一些东西。它甚至没有工作(我无法构建和运行代码),但一切都被搞砸了,我什至无法安装任何东西,无法输入 sudo,输入许多文件。看起来我没有以 root 身份登录?
$ sudo apt-get purge mono-runtime
[sudo] password for krzy:
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list
E: The list of sources could not be read.
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list
E: The list of sources could not be read.
我尝试了在 ubuntu 相关论坛上找到的许多命令,但没有任何帮助
我正在使用 Linux Mint 18
答案1
这有助于:
sudo rm /etc/apt/sources.list.d/mono-xamarin.list
然后:
sudo apt-get purge mono-runtime
sudo apt-get purge mono-complete
sudo apt-get purge libmono* libgdiplus cli-common libglitz-glx1 libglitz1