我使用 Jclouds API 创建了虚拟机,并在 Putty 登录中提供了公共地址。我尝试通过以下命令在虚拟机中安装 GUI
sudo apt-get install ubuntu-desktop
它已安装,但在重新启动 Ubuntu 服务器时我失去了互联网连接并收到如下消息:
sudo reboot
Server unexpectedly closed network connection
那么服务器将不会响应。
Err http://ppa.launchpad.net precise/main Sources
404 Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net precise/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Fetched 1,384 kB in 5s (235 kB/s)
W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3-next/ubuntu/dists /precise/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3-next/ubuntu/dists /precise/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3-next/ubuntu/dists /precise/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@ip-172-31-20-201:~$ sudo apt-get install gnome-shell ubuntu-gnome-desktop Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ubuntu-gnome-desktop
答案1
在您的服务器上尝试以下 GUI:
KDE Plasma 桌面:sudo apt-get install kde-plasma-desktop
XFCE4:sudo apt-get install xfce4
远程桌面连接工具:sudo apt-get install lxde
GNOME 3:sudo apt-get install gdm
sudo add-apt-repository ppa:gnome3-team/gnome3-next
sudo add-apt-repository ppa:gnome3-team/gnome3-staging
进而sudo apt-get update
sudo apt-get dist-update
sudo apt-get install gnome-shell
这些将为您安装一个原始 GUI,即 GUI,没有任何附带应用程序,例如 KDE Plasma Desktop 中的 Amarok 和 Muon。