突然间 gksu 停止为我工作:
~$ gksu gparted
(gpartedbin:24252): Gtk-WARNING **: cannot open display: :0
Run Code Online (Sandbox Code Playgroud)
同样的情况发生在gparted-pkexec
:
~$ gparted-pkexec
No protocol specified
(gpartedbin:25454): Gtk-WARNING **: cannot open display: :0
Run Code Online (Sandbox Code Playgroud)
什么可能导致这种情况?
我没有通过 SSH 或 VNC 运行它。这是普通终端窗口中的localhost 。
我正在尝试安装 java jre,我通常这样做
sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
sudo apt-get update
sudo apt-get install update-sun-jre
exit
Run Code Online (Sandbox Code Playgroud)
但是当我这样做的时候
sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
我懂了
权限被拒绝:/etc/apt/sources.list
当我做
ls -l /etc/apt/sources.list
我懂了
-rw-r--r-- 1 root root 3360 Aug 26 01:45 /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
当我做
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
sudo cat /etc/apt/sources.list.old | sudo tee /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
我懂了
#deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu 12.04 LTS _Precise …
Run Code Online (Sandbox Code Playgroud) 我是 Ubuntu 新手,因此非常感谢这里的任何帮助。我正在运行 12.04,我有六个更新无法安装。我已经尝试过更新管理器sudo apt-get upgrade
、 和sudo apt-get update
。到目前为止,一切都没有奏效。
这是我在 sudo apt-get dist-upgrade 之后的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
fglrx fglrx-amdcccle fglrx-dev linux-generic-pae
linux-image-3.2.0-24-generic-pae linux-image-generic-pae
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
11 not fully installed or removed.
Need to get 0 B/83.0 MB of archives.
After this operation, 53.1 MB of additional disk space will …
Run Code Online (Sandbox Code Playgroud) 不知道我做了什么,但每次启动时我都开始收到此错误。
运行 Ubuntu 12.04。
通过从 grub 中删除 splash 和 quiet ,我能够看到更多的启动日志。我相信这是罪魁祸首:
init: mountall main process (306) terminated with status 1
Run Code Online (Sandbox Code Playgroud)
我已经按照 NikTh 的建议做了,但是我的 fstab 存在并且具有正确的 UUID:
ubuntu@ubuntu:/mnt/etc$ cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount …
Run Code Online (Sandbox Code Playgroud) 我安装了 xubuntu,然后完全卸载了它,但我没有恢复原来的登录屏幕。这是一个简单的登录屏幕,在默认 12.10 背景前的中央小登录窗口中显示有计算机图标、用户名、密码和会话详细信息。我想要原始登录屏幕。(当您更改用户时,背景会不断变化的虚线壁纸)
我是否必须再次安装 Ubuntu 才能恢复登录屏幕?
installation ×2
12.04 ×1
apt ×1
boot ×1
boot-failure ×1
gksu ×1
gtk ×1
java ×1
lightdm ×1
login-screen ×1
permissions ×1
pkexec ×1
sudo ×1
uninstall ×1
updates ×1
upgrade ×1
xorg ×1
xubuntu ×1