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-54221

Alexey's questions

Martin Hope
Alexey
Asked: 2024-06-15 20:21:56 +0800 CST

geoclue“查询位置失败:未找到”

  • 8

我注意到,redshift在装有 Linux Mint 21.3 的机器上,该功能不再起作用。我确信大约半年前它仍在运行(尽管在 Linux Mint 21.2 下可能如此)。尝试调试它时,我发现问题一定出在geoclue:

$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
Using method `randr'.
Waiting for initial location to become available...
^Cpoll: Interrupted system call
Unable to get location from provider.

(我不知道为什么它谈到了 Wayland,它不是一个 Wayland 会话。)

/usr/libexec/geoclue-2.0/demos/where-am-i从包执行geoclue-2-demo一段时间后就会超时,没有任何输出或错误。(有时它确实会产生一些关于缺少某些内容的错误消息,但我无法可靠地重现它。)

状态如下geoclue.service:

$ systemctl status geoclue.service | cat
● geoclue.service - Location Lookup Service
     Loaded: loaded (/lib/systemd/system/geoclue.service; static)
     Active: active (running) since Sat 2024-06-15 13:53:51 CEST; 7min ago
   Main PID: 2434 (geoclue)
      Tasks: 4 (limit: 18810)
     Memory: 19.1M
        CPU: 424ms
     CGroup: /system.slice/geoclue.service
             └─2434 /usr/libexec/geoclue

Jun 15 13:53:51 Alexey-InfinityBook-Mint systemd[1]: Started Location Lookup Service.
Jun 15 13:54:12 Alexey-InfinityBook-Mint geoclue[2434]: Failed to query location: Not Found
Jun 15 13:54:17 Alexey-InfinityBook-Mint geoclue[2434]: Failed to query location: Not Found
[...]

谷歌搜索“geoclue.service 查询位置未找到失败”并未在搜索结果顶部返回任何相关信息。

我在 LMDE 6 (Linux Mint Debian 版本) 下遇到了同样的问题(至少看起来一样)。

任何帮助将不胜感激。

linux-mint
  • 1 个回答
  • 178 Views
Martin Hope
Alexey
Asked: 2022-10-27 01:20:51 +0800 CST

tmpfs 上的 tmp:fstab 与 tmp.mount 与 systemd

  • 7

在/tmptmpfs上,我知道我可以使用一个条目/etc/fstab,但我不明白有时/etc/default/tmpfs 提到的作用,以及在什么情况下我需要创建或修改它。

最近,我经常看到有人建议使用 systemdtmp.mount配置。例如,在 Debian 上:

$ sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
$ sudo systemctl enable tmp.mount

这两种方法哪一种更适合日常使用?在什么情况下一种比另一种更好?我什么时候需要处理/etc/default/tmpfs?

systemd
  • 1 个回答
  • 77 Views
Martin Hope
Alexey
Asked: 2022-06-22 05:43:52 +0800 CST

如何修复明显缺失的内核模块依赖声明?

  • 4

我在使用 ASIX AX88179 USB 3.0 千兆以太网适配器时遇到了一个相对常见的问题,它根本不工作,或者偶尔工作,并且dmesg显示如下错误

[23552.344134] ax88179_178a 2-1:2.1 eth1: Failed to read reg index 0x0000: -32

在网上搜索,我发现关于这个或类似问题的报告没有令人满意的解决方案或解释。

cdc_mbim经过一番调试,发现如果之前加载了模块,问题就解决了ax88179_178a。以下解决了问题,直到下次重新启动:

# rmmod ax88179_178a
# modprobe cdc_mbim
# modprobe ax88179_178a  # optional

我已经检查过它没有直接或间接地cdc_mbim声明为的依赖项。ax88179_178a

我怎样才能使ax88179_178a依赖cdc_mbim,以便cdc_mbim总是自动加载之前ax88179_178a?

drivers usb
  • 2 个回答
  • 364 Views
Martin Hope
Alexey
Asked: 2022-06-16 10:57:24 +0800 CST

AX88179 千兆以太网驱动程序

  • 0

我有以下以太网到 USB-C 适配器:

$ lsusb | grep Ethernet
Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet

目前它在插入 USB-C 端口时不起作用,dmesg我得到:

[23552.344134] ax88179_178a 2-1:2.1 eth1: Failed to read reg index 0x0000: -32

(但是,它可以在不同的机器上运行,但仍然显示错误,并且传输速率似乎有限。)

我想知道我是否安装了正确的驱动程序。我已经看到这axge似乎是正确的驱动程序,但它没有出现在lsmod.

AX88179 使用的正确驱动程序是什么,如何检查是否已安装,否则如何安装?

我目前正在使用 Linux Mint 20.3。

drivers kernel-modules
  • 1 个回答
  • 686 Views
Martin Hope
Alexey
Asked: 2018-09-12 00:13:08 +0800 CST

Debian 上的 apt 软件包管理器将软件包列为可升级但不升级

  • 13

这个问题类似于Debian Linux 不更新包,但在我的情况下,较新的包不是来自backports:

§ apt list --upgradable
Listing... Done
firefox-esr-l10n-en-gb/stable 60.2.0esr-1~deb9u2 all [upgradable from: 52.9.0esr-1~deb9u1]
N: There is 1 additional version. Please use the '-a' switch to see it

§ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

§ apt policy firefox-esr-l10n-en-gb
firefox-esr-l10n-en-gb:
  Installed: 52.9.0esr-1~deb9u1
  Candidate: 60.2.0esr-1~deb9u2
  Version table:
     60.2.0esr-1~deb9u2 500
        500 http://security.debian.org stretch/updates/main amd64 Packages
 *** 52.9.0esr-1~deb9u1 500
        500 http://ftp.fr.debian.org/debian stretch/main amd64 Packages
        500 http://security.debian.org stretch/updates/main amd64 Packages
        100 /var/lib/dpkg/status

§ apt policy firefox-esr
firefox-esr:
  Installed: 52.9.0esr-1~deb9u1
  Candidate: 52.9.0esr-1~deb9u1
  Version table:
     60.2.0esr-1~deb9u2 500
        500 http://security.debian.org stretch/updates/main amd64 Packages
 *** 52.9.0esr-1~deb9u1 30000
        500 http://ftp.fr.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

§ apt -s install firefox-esr=60.2.0esr-1~deb9u2
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  firefox-esr-l10n-en-gb
Suggested packages:
  fonts-stix | otf-stix
The following packages will be upgraded:
  firefox-esr firefox-esr-l10n-en-gb
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst firefox-esr-l10n-en-gb [52.9.0esr-1~deb9u1] (60.2.0esr-1~deb9u2 Debian-Security:9/stable [all]) []
Inst firefox-esr [52.9.0esr-1~deb9u1] (60.2.0esr-1~deb9u2 Debian-Security:9/stable [amd64])
Conf firefox-esr-l10n-en-gb (60.2.0esr-1~deb9u2 Debian-Security:9/stable [all])
Conf firefox-esr (60.2.0esr-1~deb9u2 Debian-Security:9/stable [amd64])

这是什么意思?为什么firefox-esr不升级?


更新

在 Stephen Kitt 的回答之后,我发现了一个文件/etc/apt/preferences.d/apt-listbugs,这是我今天早上运行升级时创建的,内容如下:

Explanation: Pinned by apt-listbugs at 2018-09-11 08:11:30 +0200
Explanation:   #908396: firefox-esr: stopped working after upgrade from 59 to 60
Explanation:   #908449: (no subject)
Package: firefox-esr
Pin: version 52.9.0esr-1~deb9u1
Pin-Priority: 30000

这是什么意思?

debian apt
  • 1 个回答
  • 1537 Views
Martin Hope
Alexey
Asked: 2018-08-31 10:10:30 +0800 CST

如何在 NixOS 上配置 systemd-journald?

  • 2

systemd-journald在 NixOS上配置的正确方法是什么?似乎没有相关的配置选项。例如,在 Ubuntu 上,我可以编辑/etc/systemd/journald.conf.

上下文:我最近发现默认情况下systemd-journald可以使用千兆字节的磁盘空间作为其日志,除非受到SystemMaxUse配置选项的限制。

systemd systemd-journald
  • 1 个回答
  • 738 Views
Martin Hope
Alexey
Asked: 2018-07-31 07:14:07 +0800 CST

systemd-boot 跳过启动菜单并忽略 /loader/loader.conf 中的设置

  • 7

最近,在我对多重引导系统进行了一些操作后,当我使用 引导 NixOS 时systemd-boot,即使超时仍设置为 2 秒/loader/loader.conf(在 ESP 上),引导菜单也不再显示:

# /loader/loader.conf on the ESP
timeout 2
default nixos-generation-380

这是我的/etc/nixos/configuration.nix:

{ # ...
  boot.loader = {
    efi.canTouchEfiVariables = true;
    systemd-boot.enable = true;
    timeout = 2;
  };
}

原来,要查看启动菜单,我必须在启动过程中按下某个键,好像超时已设置为 0(而不是 2)秒。

我尝试从 ESP 中删除并使用 USB 闪存驱动器systemd-bootx64.efi重新安装 NixOS 。nixos-install这恢复systemd-bootx64.efi但没有带回引导菜单。

看来这个问题并不少见:

  • Reddit:systemd-boot 菜单突然消失了?

  • Arch Linux 论坛:systemd-boot,无超时,无选择菜单 - LoaderEntryDefault

据报道,这两个问题都已得到解决。但是,我不明白第一个解决方案:

编辑 3:已解决!重新安装 UEFI 就可以了。

“重新安装 UEFI”是什么意思?

至于第二个,它建议在启动菜单中使用t和Shift+t键(如果在启动过程中按下某个键会显示)设置不同的超时,但我不想要不同的超时,我想要systemd-boot尊重中的设置/loader/loader.conf。

所以,我的问题是:如何systemd-boot再次使用设置/loader/loader.conf?

找到解决方案后,我正在编辑这个问题,现在我将发布我的答案。

boot uefi
  • 1 个回答
  • 4708 Views
Martin Hope
Alexey
Asked: 2018-03-01 09:31:39 +0800 CST

在 NixOS 上安装 CMU 字体

  • 4

我发现我需要CMU 字体才能使用 XeLaTeX 排版俄语文本。在 NixOS 下有它的cm-unicode包,我已经安装了它

nix-env -iA nixos.cm_unicode

但 XeLaTeX 仍然找不到它。我可以在 Ubuntu 上使用 XeLaTeX 编译的 LaTeX 文件在 NixOS 上无法使用 XeLaTeX 编译,并且我收到一条错误消息,指出找不到我指示的 CMU 字体。

我了解到我可以使用 列出系统上安装的所有字体fc-list,因此我尝试运行fc-list | grep -i cmu, fc-list | grep -i com, fc-list | grep -i unic,但没有得到任何结果。

我怎样才能安装这个字体? 这是针对 NixOS 17.09 的。


顺便说一句,我已经不得不手动安装拉丁现代字体:它最初无法在 XeLaTeX 中选择,但是在我安装了带有 的lmodern包后nix-env -i,它工作正常。

我刚刚再次对此进行了测试:卸载lmodernwith会从和nix-env -efrom 的结果中删除 Latin Modern ,安装 with会恢复它。与.fc-listfont-managernix-env -icm_unicode


我有一个可能相关的问题,所以我把它放在这里。(如果事实证明它不相关,我将不胜感激简短的评论或解释。)

我想在我的 中定义我的 TeX Live 环境及其所有依赖项.nixpkgs/config.nix,所以我做了

# .nixpkgs/config.nix
{ # ...
  packageOverrides = pkgs: {
    myTexLive = pkgs.texlive.combine {
      inherit (pkgs.texlive) scheme-basic
                             collection-bibtexextra
                             collection-fontsrecommended
                             collection-genericrecommended
                             collection-langcyrillic
                             collection-langfrench
                             collection-latex
                             collection-latexextra
                             collection-latexrecommended
                             collection-mathextra
                             collection-xetex
                             cm-unicode  # from `collection-fontsextra`
                             latexmk
                             lm       # from `collection-fontsrecommended`
                             lm-math  # from `collection-fontsrecommended`
                             texdoc;
    };
}

我希望拥有lm和cm-unicodeTeX Live 软件包足以安装 Latin Modern 和 CMU 字体,但它不起作用。

有没有办法将必要的字体声明为依赖项myTexLive?

fonts latex
  • 1 个回答
  • 1267 Views
Martin Hope
Alexey
Asked: 2018-02-18 10:06:54 +0800 CST

如何检查给定的驱动内核模块是否支持给定的设备?

  • 1

我正在尝试为报告为的 USB WiFi 适配器找到合适的驱动lsusb程序

0bda:a811 Realtek Semiconductor Corp.

在WikiDevi上,它被描述为“Realtek RTL8811AU Wireless 802.11ac 1x1 USB 2.0”。

似乎有多个存储库为 RTL8811AU 提供驱动程序,例如这个(它基于这个声称支持 rtl8811AU)。但是,我想在尝试将其安装到内核之前检查编译的模块是否支持该设备(这是我试图弄乱的其他人的系统)。

modinfo通过在线搜索,我得出结论,驱动模块的命令输出返回这样的一行就足够了

alias:          usb:v0BDApA811d*dc*dsc*dp*ic*isc*ip*in*

其中将包含正确的供应商 ID ( 0BDA) 和正确的产品 ID ( A811)。

这种检查驱动程序与设备兼容性的方法有多可靠?这是内核选择驱动程序的方式吗?

供应商 ID 和设备 ID 是否必须完全匹配?例如,我首先尝试使用(在 Ubuntu 上)安装rtl8812au-dkms软件包。apt-get但是,输出modinfo 8812au | grep A811是

alias:          usb:v7392pA811d*dc*dsc*dp*ic*isc*ip*in*

-- 设备 ID 没问题,但供应商 ID 不匹配。这是否意味着该驱动程序不适用于该设备?

drivers kernel-modules
  • 1 个回答
  • 2319 Views
Martin Hope
Alexey
Asked: 2018-02-17 05:03:34 +0800 CST

使用“modprobe”添加或删除模块后是否需要“update-initramfs -u”?

  • 6

我在网上找到的大多数关于在 Ubuntu 中添加或替换内核模块的说明只提到modprobe和rmmod. 但是,根据我的经验e1000e,除非我之后再重新启动,否则修改会在重新启动后恢复update-initramfs -u。的man页面update-initramfs没有提到模块。

update-initramfs -u那么,如果我想在重启后拥有修改后的内核,是否总是需要在更换内核模块后运行?

debian ubuntu
  • 1 个回答
  • 42173 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve