我很高兴拥有 Ubuntu 17.10。运行良好,Chrome 上的 Flash Player 有点问题,但我给出了建议。现在我想安装 XAMPP 和...
bogdan@bogdan-dom:~/Downloads$ chmod 755 xampp*
bogdan@bogdan-dom:~/Downloads$ stat xampp*
File: xampp-linux-x64-7.1.11-0-installer.run
Size: 140031648 Blocks: 273512 IO Block: 4096 regular file
Device: 805h/2053d Inode: 1332894 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ bogdan) Gid: ( 1000/ bogdan)
...
...
Birth: -
bogdan@bogdan-dom:~/Downloads$ sudo ./xampp*
[sudo] password for bogdan:
No protocol specified
No protocol specified
No protocol specified
No protocol specified
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files [y/N] :
几次之后是的……
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
run
help
exit
我什么都试过了,但终端却无法运行(只能写入)
我知道未指定协议它应该显示安装程序窗口
请帮忙
答案1
遇到了同样的问题。我认为这是一个 Wayland 问题。尝试使用 xorg 登录。对我来说有效
答案2
较新的系统在设计上不允许以 root 身份运行图形应用程序(这是 Wayland 的事情)。解决方法:
xhost si:localuser:root
sudo your-graphical-app
恢复默认权限:
xhost -si:localuser:root