小编Bac*_*ach的帖子

无法连接到无障碍总线

ssh与 X11 转发一起使用时,我在运行 gui 应用程序时收到各种错误和警告。

例如,每当我运行gitg 时,都会收到以下警告:

** (gitg:15904): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-ychCoQcrqT: Connection refused
Run Code Online (Sandbox Code Playgroud)

除了丑陋之外,这是否表明任何真正的错误?

我在运行evince 时收到相同的警告:

** (evince:16634): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-ychCoQcrqT: Connection refused
Run Code Online (Sandbox Code Playgroud)

...或eog

** (eog:16872): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-ychCoQcrqT: Connection refused
Run Code Online (Sandbox Code Playgroud)

等等。

也许值得一提:我从 12.04 连接到(是的,不受支持)13.04。

ssh x11-forwarding dbus

20
推荐指数
1
解决办法
4万
查看次数

无法找到我知道如何处理的初始 ram 磁盘

升级到下一个 linux 镜像后,aptitude 输出了以下几行:

Setting up linux-image-3.16.0-38-generic (3.16.0-38.52~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-38-generic /boot/vmlinuz-3.16.0-38-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.0-38-generic /boot/vmlinuz-3.16.0-38-generic
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Error! Problems with depmod detected.  Automatically uninstalling …
Run Code Online (Sandbox Code Playgroud)

kernel ram initramfs dkms 14.04

12
推荐指数
1
解决办法
8813
查看次数

XPS13 9310、Ubuntu 20.04、Intel TigerLake-LP GT2 [Iris Xe] 上的屏幕撕裂

我知道关于这个问题有很多问题,但到目前为止我找到的解决方案似乎没有帮助我解决这个问题。

这是一台全新的 Dell XPS 9310,配备 Intel 显卡和 Ubuntu 20.04。我时不时就会出现画面撕裂的情况。以下解决方案不起作用:

  1. 切换到韦兰。这有助于一切看起来更流畅,但过了一会儿我注意到屏幕撕裂仍然发生。

  2. 添加各种潜在的内容到/etc/X11/xorg.conf.d/20-intel.conf或 中/etc/X11/xorg.conf.d/20-intel-graphics.conf。例如,我尝试了https://askubuntu.com/a/1237079/221347中提出的解决方案、https ://askubuntu.com/a/1237079/221347中提出的解决方案以及我在网络上找到的其他一些解决方案。有些没有任何区别,有些确实破坏了整个可视化。

  3. 我尝试使用compton. 它没有任何区别(或者也许我没有正确使用它)。

  4. 我禁用了动画gnome-tweaks

  5. 我从 Ubuntu 切换到 gnome、gnome-classic 和 gnome-xorg。


这是我的系统上的一些潜在的相关信息。

bach@pita::~$ inxi -G
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: fbdev 
  unloaded: modesetting,vesa resolution: 1920x1200~60Hz 
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.3 
Run Code Online (Sandbox Code Playgroud)

bach@pita::~$ sudo lshw | grep display -A12
        *-display …
Run Code Online (Sandbox Code Playgroud)

xorg dell intel screen 20.04

5
推荐指数
1
解决办法
1663
查看次数

sm-msp-queue 说:无法限定我自己的域名 (xxx) -- 使用短名称

每隔 20 分钟,连续几天,sm-msp-queuesendmail我猜是与 相关的)在我的里面写了一条ubun这样的消息:

无法限定我自己的域名 (ubun) -- 使用短名称

哪里ubun是网络节点主机名( 的输出uname -n和内容/etc/hostname)。

的内容/etc/mail/local-host-names包括两行:localhostubun

该文件/etc/hosts以两行开头:

127.0.0.1 localhost
127.0.0.1 ubun
Run Code Online (Sandbox Code Playgroud)

该文件/etc/cron.d/sendmail包含一个设置为每 20 分钟运行一次的 cronjob:

*/20 *    *    *    *   smmsp test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
Run Code Online (Sandbox Code Playgroud)

但是,我不知道该命令smmsp应该做什么;我不能单独运行它,也不能使用sudo(I get sudo: smmsp: command not found)。跑步sudo /usr/share/sendmail/sendmail cron-msp好像什么都没做。

有任何想法吗?

cron hostname syslog sendmail

4
推荐指数
1
解决办法
2万
查看次数

Ubuntu 14.04 上的 Python3 + ipython + pylab

我很想切换到Python 3,但是Ubuntu 14.04在使用IPython+pylab框架时很难做到这一点。

pip我的设置:我已经使用而不是安装了大多数重要的软件包aptitude。这些软件包包括numpy 1.10.1scipy 0.16.1matplotlib 1.5.0pylab 0.1.0IPython 4.0.1

我还使用安装了python3-pyqt5 5.2.1python3-pyside 1.2.1aptitude

matplotlib从内部使用IPython效果很好:

import matplotlib.pyplot as plt
plt.plot([0, 1], [1, 2])
plt.show()
Run Code Online (Sandbox Code Playgroud)

pylab但是当我尝试通过调用或从 IPython 内部ipython --pylab调用来使用 时,问题就开始了。pylab这就是我在这两种情况下得到的结果:

ImportError: 
    Could not load requested Qt binding. Please ensure that
    PyQt4 >= 4.7, PyQt5 or PySide >= 1.0.3 is available,
    and only one is imported per session. …
Run Code Online (Sandbox Code Playgroud)

pyside python3 qt5 ipython pyqt5

2
推荐指数
1
解决办法
1853
查看次数

标签 统计

14.04 ×1

20.04 ×1

cron ×1

dbus ×1

dell ×1

dkms ×1

hostname ×1

initramfs ×1

intel ×1

ipython ×1

kernel ×1

pyqt5 ×1

pyside ×1

python3 ×1

qt5 ×1

ram ×1

screen ×1

sendmail ×1

ssh ×1

syslog ×1

x11-forwarding ×1

xorg ×1