Linux上安装Qt安装不上 提示libX11-xcb.so.1 not found on the system

在ubuntu14版本上装Qt时提示libX11-xcb.so.1 not found on the system,装不上,ubuntu16版本可以正常安装。

现在将解决方法记录一下:

提示:libX11-xcb.so.1 not found on the system

先执行如下两行代码:

sudo apt-get install libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libgconf2-4 libasound2 libatk1.0-0 libgtk-3-0
sudo apt-get install libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 -y

安装完成后,如果用root仍然不能安装但用普通用户能安装,需要先设置能用root用户登录。

设置root用户登录步骤如下:

1、安装ssh(已经安装的略过)

sudo apt install openssh-server

2、设置root密码,ubuntu默认root密码是随机的,需要重置一下

sudo passwd root

3、允许root用户登录,编辑sshd_config

sudo vim /etc/ssh/sshd_config
找到# Authentication项下的
PermitRootLogin prohibit-password改成PermitRootLogin yes

4、重启ssh

sudo systemctl restart sshd

5、重新用root进行登录

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Radish(萝卜)

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值