AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-47300

red_trumpet's questions

Martin Hope
red_trumpet
Asked: 2022-04-12 05:49:44 +0800 CST

如何修复 Firefox 中“Tex Gyre Pagella”的难看字体渲染?

  • 1

我相信这是这个问题的重复,但接受的答案是 8 岁以上,对我不起作用。

这是一个网站,它想使用 Palatino 字体。在我的系统上,这回退到Tex Gyre Pagella,也称为P052-Roman. 这是它的样子,不同字母的高度不同是直接的。

丑陋的字体

上面链接的问题的答案声称问题在于提示,但应用修复不起作用。我还尝试将字体名称URW Palladio L等更改为P052-Romanand Tex Gyre Paella。

任何帮助,将不胜感激!

firefox
  • 3 个回答
  • 473 Views
Martin Hope
red_trumpet
Asked: 2022-03-06 12:18:56 +0800 CST

是否可以使用“软件更新程序”更新 flatpak?

  • 2

目前,当我想更新我的 flatpaks 时,我必须打开 gnome 软件中心并在那里查找更新。我的其他软件(apt、snap)由“软件更新程序”更新,又名update-manager. 是否也可以通过软件更新程序更新 flatpak?

updates
  • 1 个回答
  • 386 Views
Martin Hope
red_trumpet
Asked: 2021-01-09 08:52:28 +0800 CST

如何安装“htop”手册页?

  • 1

我已htop通过 snap 安装,但显然man htop未安装手册页 ( )。可以安装这个吗?

20.04
  • 1 个回答
  • 127 Views
Martin Hope
red_trumpet
Asked: 2020-11-09 02:05:28 +0800 CST

如何分析“虚拟输出”设备出现的来源?

  • 0

我的输出设备中出现了一个虚拟输出,但没有声音。我已经在这个网站上阅读了很多问题,但没有任何建议的解决方案能持续为我工作。

诊断

lspci -nnk | grep -A3

06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637]
        Subsystem: Lenovo Device [17aa:5082]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
--
06:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01)
        Subsystem: Lenovo Raven/Raven2/FireFlight/Renoir Audio Processor [17aa:5084]
        Kernel driver in use: snd_rn_pci_acp3x
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
06:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
        Subsystem: Lenovo Family 17h (Models 10h-1fh) HD Audio Controller [17aa:5082]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  jonas      1176 F.... pulseaudio
/dev/snd/controlC2:  jonas      1176 F.... pulseaudio

find /lib/modules | grep snd | grep hda | grep intel

/lib/modules/5.4.0-52-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda.ko
/lib/modules/5.4.0-52-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda-common.ko
/lib/modules/5.4.0-52-generic/kernel/sound/soc/intel/boards/snd-soc-skl_hda_dsp.ko
/lib/modules/5.4.0-52-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/5.4.0-52-generic/kernel/sound/hda/snd-intel-dspcfg.ko
/lib/modules/5.8.0-25-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda.ko
/lib/modules/5.8.0-25-generic/kernel/sound/soc/sof/intel/snd-sof-intel-hda-common.ko
/lib/modules/5.8.0-25-generic/kernel/sound/soc/intel/boards/snd-soc-skl_hda_dsp.ko
/lib/modules/5.8.0-25-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/5.8.0-25-generic/kernel/sound/hda/snd-intel-dspcfg.ko

这是我尝试过的:

1.pulseaudio -k && sudo alsa force-reload

如果我经常发出这个命令(大约 3-7 次),那么最终我的扬声器会显示为输出设备并且声音可以正常工作。但是,重新启动后,这不再起作用。

我怎样才能使它保持一致?

此命令的典型输出如下所示

Unloading ALSA sound driver modules: snd-soc-dmic snd-acp3x-rn snd-acp3x-pdm-dma snd-soc-core snd-compress snd-hda-codec-hdmi snd-pcm-dmaengine snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-seq-midi snd-seq-midi-event snd-intel-dspcfg snd-hda-codec snd-rawmidi snd-hda-core snd-seq snd-hwdep snd-pcm snd-seq-device snd-rn-pci-acp3x snd-pci-acp3x snd-timer (failed: modules still loaded: snd-soc-dmic snd-soc-core snd-compress snd-pcm-dmaengine snd-hda-codec-realtek snd-hda-codec-generic snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer).
Loading ALSA sound driver modules: snd-soc-dmic snd-acp3x-rn snd-acp3x-pdm-dma snd-soc-core snd-compress snd-hda-codec-hdmi snd-pcm-dmaengine snd-hda-codec-realtek snd-hda-codec-generic snd-hda-intel snd-seq-midi snd-seq-midi-event snd-intel-dspcfg snd-hda-codec snd-rawmidi snd-hda-core snd-seq snd-hwdep snd-pcm snd-seq-device snd-rn-pci-acp3x snd-pci-acp3x snd-timer.

有时,failed: modules still loaded零件不会出现。但我没有认识到任何不同的结果。

这略微更改aplay -l为

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

所以card 1现在它是Subdevices: 0/1而不是Subdevices: 1/1.

2.添加行/etc/modprobe.d/alsa-base

根据this question中的解决方案,我添加了该行

options snd-hda-intel model=generic

到/etc/modprobe.d/alsa-base. 这实际上取代了Dummy outputby HD-Audio Generic Digital Stereo (HDMI)。我猜这会启用 HDMI 音频输出?我无法对此进行测试,但扬声器不起作用。

这改变了输出aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

其他两条提议的线路

options snd-hda-intel dmic_detect=0
blacklist snd_soc_skl

没有任何我认可的效果。

3.胆怯

有些人对程序有问题timidity,但它没有安装在我的系统上。

我很茫然,现在该怎么办。任何帮助,将不胜感激 :)

sound pulseaudio drivers alsa
  • 1 个回答
  • 780 Views
Martin Hope
red_trumpet
Asked: 2020-10-21 06:52:35 +0800 CST

为什么`xmodmap`在登录时并不总是加载`.Xmodmap`?

  • 0

我在文件中有以下内容~/.Xmodmap

! change CapsLock to Escape
clear Lock
keycode 0x42 = Escape

当我发出 comman 时,它将 CapsLock 键重新映射到 Escape,并且运行良好xmodmap ~/.Xmodmap。但是,当我启动笔记本电脑时,它并不总是有效。但有时它会起作用!

有谁知道发生了什么?我该如何尝试解决此问题?

keyboard autostart startup xubuntu xmodmap
  • 1 个回答
  • 121 Views
Martin Hope
red_trumpet
Asked: 2017-10-23 01:44:10 +0800 CST

如何备份 GNOME 终端仿真器设置?

  • 20

我做了一些自定义 GNOME 终端设置和配置文件,我想在重新安装 Ubuntu 后保留这些设置和配置文件。

我必须保存什么来备份我的设置,之后如何重新应用它们?

这不是这个问题的重复,因为

  1. 配置系统自旧问题以来发生了变化,从 gconf 到 dconf。
  2. 另一个问题没有解释如何正确备份,然后重新应用设置。
gnome
  • 1 个回答
  • 5854 Views
Martin Hope
red_trumpet
Asked: 2017-09-07 03:47:58 +0800 CST

使用命令行重新排列 PDF 页面

  • 21

我想重新排列 PDF 文件中的页面。但是因为我要重新排列很多页面,而且新的排列有一个特定的模式,我想用一个脚本来做。是否有一个简单的程序可以重新排列 PDF 中的页面?

或者,我也可以提取所有页面并按照我想要的顺序将它们合并在一起。有哪些程序可以做到这一点?

command-line
  • 4 个回答
  • 15940 Views
Martin Hope
red_trumpet
Asked: 2015-03-08 03:41:51 +0800 CST

安装steam的依赖问题

  • 2

我在尝试在 Ubuntu 14.04 上安装 Steam 时遇到了一些依赖性问题。我从http://media.steampowered.com/client/installer/steam.deb得到了 steam-launcher.deb-Package并安装了它:

eva@eva-ubuntu:~/Downloads$ sudo dpkg --install steam_latest.deb 
Vormals nicht ausgewähltes Paket steam-launcher wird gewählt.
(Lese Datenbank ... 196920 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von steam_latest.deb ...
Entpacken von steam-launcher (1.0.0.49) ...
steam-launcher (1.0.0.49) wird eingerichtet ...
Trigger für gnome-menus (3.10.1-0ubuntu2) werden verarbeitet ...
Trigger für desktop-file-utils (0.22-1ubuntu1) werden verarbeitet ...
Trigger für bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
Trigger für mime-support (3.54ubuntu1.1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.13-1) werden verarbeitet ...
Trigger für man-db (2.6.7.1-1ubuntu1) werden verarbeitet ...

启动蒸汽给出以下内容:

eva@eva-ubuntu:~/Downloads$ steam

(gnome-terminal:4881): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). This call will probably stop working with a future version of glib.

并打开一个新的终端窗口

Steam needs to install these additional packages: 
    libgl1-mesa-dri:i386, libgl1-mesa-glx:i386, libc6:i386
[sudo] password for eva: 
.................................................................................................................
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libgl1-mesa-glx:i386 : Hängt ab von: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.3)
 unity-control-center : Hängt ab von: libcheese-gtk23 (>= 3.4.0) soll aber nicht installiert werden
                    Hängt ab von: libcheese7 (>= 3.0.1) soll aber nicht installiert werden
E: Fehler: Unterbrechungen durch pkgProblemResolver::Resolve hervorgerufen; dies könnte durch zurückgehaltene Pakete verursacht worden sein.
Press return to continue: 

关闭附加终端窗口后,在第一个窗口中我得到:

Package libgl1-mesa-dri:i386 needs to be installed
Package libgl1-mesa-glx:i386 needs to be installed
Package libc6:i386 needs to be installed
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
Error: You are missing the following 32-bit libraries, and Steam may not run:
libGL.so.1
Installing breakpad exception handler for appid(steam)/version(1424305157)
Installing breakpad exception handler for appid(steam)/version(1424305157)
Installing breakpad exception handler for appid(steam)/version(1424305157)
Installing breakpad exception handler for appid(steam)/version(1424305157)
[2015-03-07 12:14:01] Startup - updater built Feb 18 2015 15:31:44
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2015-03-07 12:14:01] Checking for update on startup
[2015-03-07 12:14:01] Checking for available updates...
[2015-03-07 12:14:02] Download skipped: /client/steam_client_ubuntu12 version 1424305157, installed version 1424305157
[2015-03-07 12:14:02] Nothing to do
[2015-03-07 12:14:02] Verifying installation...
[2015-03-07 12:14:02] Performing checksum verification of executable files
[2015-03-07 12:14:05] Verification complete
[2015-03-07 12:14:07] Shutdown
eva@eva-ubuntu:~/Downloads$

它还会弹出一个窗口,提示我缺少 libGL1.so.1 的 32 位版本。并尝试启动蒸汽,但失败了。

以前我也做过

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get upgrade

如无法解决包依赖性时如何安装 64 位 Steam?.

我没有安装任何 PPA,我当前/etc/apt/sources.list的是:

eva@eva-ubuntu:~/Downloads$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://be.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty main universe multiverse restricted #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://be.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-updates main universe multiverse restricted #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ trusty universe
deb http://be.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties

deb http://security.ubuntu.com/ubuntu trusty-security main restricted multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main universe multiverse restricted #Added by software-properties
deb http://security.ubuntu.com/ubuntu trusty-security universe

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

不知何故,整个情况看起来有点荒谬,因为两个 libcheese 包似乎已经安装好了,如下所示dpkg -l | grep libcheese:

ii  libcheese-gtk23:amd64                                 3.10.2-0ubuntu2                                     amd64        tool to take pictures and videos from your webcam - widgets
ii  libcheese7:amd64                                      3.10.2-0ubuntu2                                     amd64        tool to take pictures and videos from your webcam - base library

也许错误发生是因为那些不是 32 位的?

我将不胜感激任何帮助!

apt
  • 1 个回答
  • 4700 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve