我遵循了安装 24.04.2 64bit 的所有说明。
安装后,移除安装介质,我似乎无法让 PC 提供 Linux 的替代启动。我尝试更改一些 BIOS 设置,但没有成功。
我重新创建了安装媒体,但现在机器甚至无法识别它。
我不知道下一步该怎么做。有人有什么想法吗?
我遵循了安装 24.04.2 64bit 的所有说明。
安装后,移除安装介质,我似乎无法让 PC 提供 Linux 的替代启动。我尝试更改一些 BIOS 设置,但没有成功。
我重新创建了安装媒体,但现在机器甚至无法识别它。
我不知道下一步该怎么做。有人有什么想法吗?
我使用 Xubuntu 已有好几年了。我从未改变过基本的 xfce 设置。
我一直读到 (x)Ubuntu 默认使用 Xorg。我一直读到涉及编辑的图形问题解决方案/etc/X11/xorg.conf
我安装的 Xubuntu 中没有一个是默认的/etc/X11/xorg.conf
,也不是 22.04 LTS。它确实有/etc/X11/
和 /etc/X11/xorg.conf.d/
,但没有xorg.conf
文件。
有人能解释一下这是为什么吗?
Ubuntu 24 应该对 AMD XDNA 和 SoC(单芯片 CPU+GPU+NPU)提供良好的支持,例如 AMD 8945HS 处理器。我需要 AMD XDNA 驱动程序,但在 apt 等工具中没有找到相应的软件包。如何在我的 Ubuntu 服务器上安装它?amdgpu-installer 解决了我启用 GPU 时遇到的所有问题。有没有类似的 NPU 安装程序?
我正在尝试将我的 jumphost 从 Ubutnu 20.04 升级到 Ubuntu 24.04.2 LTS,并启用审核。
这是我的会议:
$ cat /etc/audit/rules.d/000.audit.rules
-D
-b 64
-r 1000
-f 1
# Logging All user commands
-a always,exit -F arch=b64 -S execve -F auid>=1000 -F auid!=4294967295 -k user_commands
-a always,exit -F arch=b32 -S execve -F auid>=1000 -F auid!=4294967295 -k user_commands
...
但是当用户登录系统(40-70 个用户)时,我注意到系统会消耗所有 RAM,因为 RAM 的使用是内核缓冲区,这是由于速率限制而使用的,这会导致系统性能下降直至冻结
$ grep -E 'Slab|SReclaimable|SUnreclaim' /proc/meminfo && free -m
Slab: 2690568 kB
SReclaimable: 14672 kB
SUnreclaim: 2675896 kB
total used free shared buff/cache available
Mem: 2972 2961 70 0 56 10
Swap: 4521 467 4054
这在 Ubuntu 20 中不会发生。
有什么想法可以解决它吗?
感谢您的帮助。
我正在尝试在lubuntu 24.04上安装EDIMAX EW-7811UTC WiFi适配器。
rtl8812au-dkms
我使用过以下命令:
> sudo apt install rtl8812au-dkms
重启后,在启动过程结束时,我已将 WiFi 适配器插入 USB 端口,但没有任何可用的 wifi 接口。命令的输出sudo lshw -C network
是:
> sudo lshw -C network
[sudo] password for user:
*-network
description: Ethernet interface
product: I210 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 03
serial: 00:13:95:5b:bd:16
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb driverversion=6.8.0-54-generic duplex=full firmware=0. 6-5 ip=192.168.127.11 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:22 memory:91200000-9121ffff memory:91220000-91223fff
*-network
description: Ethernet interface
product: I210 Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 03
serial: 00:13:95:5b:bd:17
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=igb driverversion=6.8.0-54-generic firmware=0. 6-5 latency=0 link=no multicast=yes port=twisted pair
resources: irq:23 memory:91100000-9111ffff memory:91120000-91123fff
使用以下命令删除以前的包后:
> sudo apt purge rtl8812au-dkms
我尝试从GitHub 源安装驱动程序,但结果同样不理想。
要从源安装驱动程序,我按照以下步骤操作:
cd /usr/src
sudo git clone https://github.com/morrownr/8812au-20210820.git
cd /usr/src/8812au-20210820/
sudo ./install-driver.sh
我可以通过以下命令看到模块已安装:
> dkms status
rtl8812au/4.3.8.12175.20140902+dfsg, 6.8.0-54-generic, x86_64: installed
此安装的结果与 apt 存储库的安装结果相同。
过去,我曾在内核为 5.19.0-41 的 lubuntu 22.04 和其他 Linux 发行版(Mint、Yocto 构建的自定义发行版)上安装了相同 WiFi 的驱动程序。
我注意到的最重要的区别是 lubuntu 24.04 有一个内核版本:
> uname -r
6.8.0-54-generic
如果我尝试在内核为 6.8.0.52-generic 的 lubuntu 22.04 上安装 wifi 适配器,安装会失败。
如何在内核为 6.8 的 lubuntu 24.04 发行版上安装 EDIMAX EW-7811UTC WiFi 适配器?
我创建了一个包含两张图片的签名,保存了-一切正常。签名设置是 html,电子邮件也是。当我创建电子邮件时,选择签名-它起作用了。重新启动计算机后,图像消失了-无论是插入时还是检查实际签名时(在 Composer Signatures 下)。我只能通过重新创建签名来重新获得图像。有办法解决这个问题吗?请耐心等待-我可以执行终端命令等,但可能需要逐步完成。或者有没有更好的替代电子邮件应用程序-我在应用程序中有 4 个电子邮件地址-其中三个与工作有关。谢谢,Glynn
我们开始将我们的docker容器迁移到24.04版本,并在安装python依赖项期间从操作系统获得了以下建议:
root@76ea3b9e695a:/# pip install numpy
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS
distribution provider. You can override this, at the risk of breaking your Python
installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
问题:
__main__.py
?我最近升级(哈!!)到了 24.04.2 LTS 并且试图让它像我的 22.04 那样运行。
我一直在阅读许多关于如果遇到“外部管理环境”消息该怎么办的讨论,特别是https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
据我了解,当前的建议是通过创建虚拟环境来运行这样的包python3 -m venv .A
,其中 A 是 venv 名称。
但是我需要安装多个外部包。在旧系统中,它们是在整个系统范围内单独安装的,并且“相互通信”。
一个特殊的例子(但不是唯一的例子)是 astropy 和 Jupyter。我使用独立的 astropy 以及包含 astropy 的 Jupyter 笔记本。我也将 Jupyter 用于其他用途。两者现在都标记为“外部管理”。
据我理解,我需要将两者安装在单独的 venv 中,因为它们是外部的。我是否需要在每个 venv 中复制两者,或者是否有某种方法可以交叉访问它们?... 并为每个 venv 单独安装一个 python3?当然,还需要大量移动文件。一定还有其他方法 - 太笨重了!而且肯定非常低效,占用大量内存!
我在论坛和其他地方搜索了很久,但无果。
我有一台 vanilla 24.04.2 机器,内核为 6.8.0-53-generic,我想启用 HWE
我尝试通过 apt 安装 hwe 内核
sudo apt install linux-generic-hwe-24.04
但是,构建失败,崩溃日志告诉我内核是由与我安装的 GCC 版本不同的版本构建的。但是,崩溃日志中列出的 GCC 版本是相同的。
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
具体的编译错误是
CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
472 | xmit = &port->state->xmit;
看来我有正确的编译器:
dpkg --list | grep gcc
ii gcc 4:13.2.0-7ubuntu1 amd64 GNU C compiler
ii gcc-11 11.4.0-9ubuntu1 amd64 GNU C compiler
ii gcc-11-base:amd64 11.4.0-9ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-12 12.3.0-17ubuntu1 amd64 GNU C compiler
ii gcc-12-base:amd64 12.3.0-17ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-13 13.3.0-6ubuntu2~24.04 amd64 GNU C compiler
ii gcc-13-base:amd64 13.3.0-6ubuntu2~24.04 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-13-x86-64-linux-gnu 13.3.0-6ubuntu2~24.04 amd64 GNU C compiler for the x86_64-linux-gnu architecture
ii gcc-13-x86-64-linux-gnu-base:i386 13.3.0-6ubuntu2~24.04cross1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-14-base:amd64 14.2.0-4ubuntu2~24.04 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-14-base:i386 14.2.0-4ubuntu2~24.04 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-x86-64-linux-gnu 4:13.2.0-7ubuntu1 amd64 GNU C compiler for the amd64 architecture
ii libgcc-11-dev:amd64 11.4.0-9ubuntu1 amd64 GCC support library (development files)
ii libgcc-12-dev:amd64 12.3.0-17ubuntu1 amd64 GCC support library (development files)
ii libgcc-13-dev:amd64 13.3.0-6ubuntu2~24.04 amd64 GCC support library (development files)
ii libgcc-s1:amd64 14.2.0-4ubuntu2~24.04 amd64 GCC support library
ii libgcc-s1:i386 14.2.0-4ubuntu2~24.04 i386 GCC support library
ii libuno-cppuhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- CPPU helper library
ii libuno-purpenvhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- "purpose environment" helper
ii libuno-salhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- SAL helpers for C++ library
ii python3-pygccxml 2.4.0-1 all specialized XML reader reads the output from gccxml - python3 lib
有什么想法让我缺少什么才能使这个工作成功吗?
完整崩溃日志:
cat /var/crash/xtrx-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
DKMS make.log for xtrx-0.0.1+git20190320.5ae3a3e-3.2ubuntu2 for kernel 6.11.0-17-generic (x86_64)
Sun Feb 23 07:01:37 PM PST 2025
make: Entering directory '/usr/src/linux-headers-6.11.0-17-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
472 | xmit = &port->state->xmit;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:473:13: error: implicit declaration of function ‘uart_circ_empty’; did you mean ‘uart_lsr_tx_empty’? [-Werror=implicit-function-declaration]
473 | if (uart_circ_empty(xmit))
| ^~~~~~~~~~~~~~~
| uart_lsr_tx_empty
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:25: error: invalid use of undefined type ‘struct circ_buf’
480 | c = xmit->buf[xmit->tail] & 0xff;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:35: error: invalid use of undefined type ‘struct circ_buf’
480 | c = xmit->buf[xmit->tail] & 0xff;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:21: error: invalid use of undefined type ‘struct circ_buf’
484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:35: error: invalid use of undefined type ‘struct circ_buf’
484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:490:13: error: implicit declaration of function ‘uart_circ_chars_pending’ [-Werror=implicit-function-declaration]
490 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.11.0-17-generic/Makefile:1931: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.11.0-17-generic'
DKMSKernelVersion: 6.11.0-17-generic
Date: Sun Feb 23 19:01:38 2025
DuplicateSignature: dkms:xtrx-dkms:0.0.1+git20190320.5ae3a3e-3.2ubuntu2:/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
Package: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
PackageVersion: 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
SourcePackage: xtrx-dkms
Title: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2: xtrx kernel module failed to build
今天,我尝试为运行 Ubuntu 24.04.2 LTS 的 PC 启用 Ubuntu Pro。一切顺利,直到无法在软件应用程序中启用 livepatch,并出现警告“Livepatch 不涵盖当前内核”。我发现对于 Ubuntu 24.04,唯一支持的内核是 6.8(低于我当前的内核 6.11)。我想知道 Livepatch 何时会在 Ubuntu 上覆盖内核版本 6.11,因为它提供的安全更新不需要重新启动即可安装。谢谢!