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
    • 最新
    • 标签
主页 / ubuntu / 问题

全部问题(ubuntu)

Martin Hope
voidf.0xb3
Asked: 2024-11-23 03:50:14 +0800 CST

每次重启后都必须配对蓝牙耳机

  • 5

我的新蓝牙耳机(HONOR CHOICE 开放式耳塞)出了点问题。我可以将它们与我的 Ubuntu 24.10 PC(一台带有蓝牙适配器的台式电脑)配对,配对后它们工作正常,直到我重新启动电脑(或重新启动服务bluetooth),这时它就无法连接了。我之前的蓝牙耳机没有出现这种情况,在 Ubuntu 上运行良好。

重启后,我连接耳机的唯一方法是经过另一个配对过程:经过一些调整(关闭耳机或适配器并反复尝试连接)后,Ubuntu 要求我确认一个 6 位数的代码,单击“确认”后,耳机即可再次工作。(顺便说一句,6 位数的代码本身很奇怪:以前的耳机不需要代码,而且耳机无论如何都无法显示代码,所以我实际上并没有将该代码与任何东西进行比较。)

完成此过程后,LinkKeyin/var/lib/bluetooth/XX:XX:XX:XX:XX:XX/XX:XX:XX:XX:XX:XX/info会发生变化;此外,我安装的蓝牙管理器程序(blueman包)在标有“蓝牙配对请求”的通知中显示相同的代码。这让我有理由确信这实际上是另一次配对。

此问题特定于 Ubuntu:在同一台计算机上安装 Windows 11 时不会发生此问题,重启后重新连接没有任何问题。(请注意,这不是在双启动的情况下必须在两个不同的操作系统之间同步蓝牙密钥的问题:在这里我将耳机与 Ubuntu 配对,然后再次重新启动到 Ubuntu,根本不触及 Windows。我只提到 Windows 以将问题缩小到 Ubuntu,而不是耳机或 PC 硬件。)

如果我尝试通过命令行连接耳机,它会产生以下错误消息(我删除了设备的地址):

$ bluetoothctl connect XX:XX:XX:XX:XX:XX
Attempting to connect to XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
Failed to connect: org.bluez.Error.Failed br-connection-unknown

我该如何修复此问题?

编辑:我发现了这个btmon工具,它似乎可以转储计算机与其交互的设备之间交换的蓝牙消息的完整痕迹。

在失败的连接尝试的跟踪中,我发现了以下交换:

> HCI Event: Link Key Request (0x17) plen 6                                                                                                                                                                          #55 [hci0] 13.039915
        Address: XX:XX:XX:XX:XX:XX (Tiinlab Corporation)
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6                                                                                                                                                  #56 [hci0] 13.039939
        Address: XX:XX:XX:XX:XX:XX (Tiinlab Corporation)

以下是成功连接尝试的跟踪的相应部分(配对之后和重启之前):

> HCI Event: Link Key Request (0x17) plen 6                                                                                                                                  #34 [hci0] 13.524821
        Address: XX:XX:XX:XX:XX:XX (Tiinlab Corporation)
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22                                                                                                                  #35 [hci0] 13.524834
        Address: XX:XX:XX:XX:XX:XX (Tiinlab Corporation)
        Link key[16]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

看来,Ubuntu 在服务bluetooth重启后不记得它有一个该设备的链接密钥。

bluetooth
  • 1 个回答
  • 75 Views
Martin Hope
Bones
Asked: 2024-11-23 00:26:38 +0800 CST

禁止传入流量的端口

  • 5

我在云服务器上全新安装了 Ubuntu 24.04 来运行 iRedMail 1.7.1。

服务器显示

sudo ufw status verbose
Status: inactive

和

$ ss -ltn
.
.
LISTEN       0            511                      0.0.0.0:443                      0.0.0.0:*                        
.
.
.

但从外部机器我得到

Nmap scan report for xx.xx.xx.xx
Host is up (0.023s latency).
Not shown: 990 filtered tcp ports (no-response)
PORT    STATE  SERVICE
22/tcp  open   ssh
25/tcp  closed smtp
80/tcp  closed http
110/tcp closed pop3
143/tcp closed imap
443/tcp closed https
465/tcp closed smtps
587/tcp closed submission
993/tcp closed imaps
995/tcp closed pop3s

如果我发出

server:~$ sudo ufw disable
Firewall stopped and disabled on system startup
server:~$ sudo shutdown -r now

然后重新启动我得到

Nmap scan report for xx.xx.xx.xx
Host is up (0.011s latency).
Not shown: 990 filtered tcp ports (no-response)
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
80/tcp  open  http
110/tcp open  pop3
143/tcp open  imap
443/tcp open  https
465/tcp open  smtps
587/tcp open  submission
993/tcp open  imaps
995/tcp open  pop3s

正如预期的那样。这种情况持续了几分钟,然后某些东西又将端口关闭。UFW 仍然显示为“不活动”。

什么可能导致了这种行为?

根据端口关闭前的延迟,它可能与 如何修复重启后自动应用 netplan 配置不起作用? 和 netplan 生成器有关?

回复 mpboden,我立即担心 443,但 NMAP 在尝试通过 HTTPS 接口进行通信时显示端口要么打开,要么被过滤。我的 Netplan 配置是

network:
  version: 2
  renderer: networkd
  ethernets:
      eth0:
          dhcp4: no
          addresses: [xx.xx.xx.xx/24]
          routes:
              - to: default
                via: xx.xx.xx.xx          
          nameservers:
              addresses: [8.8.8.8, 208.67.222.222]

我在日志文件中没有找到任何线索,但这可能是因为我未能发现一些重要的东西。

针对 Thomas Ward 的观点,我尝试过明确打开 UFW 中的端口,请参阅UFW 中的端口打开但仍然对外界关闭,但这并没有什么区别。因此,我将 UFW 设置为非活动状态,至少在我弄清楚这一点之前是这样。

延迟表明其他 Netplan 组件可能正在异步运行并更改端口配置。但是去哪里查找呢?

我已经设置了另一台正常工作的服务器以供比较。问题似乎与无法启动 systemd-networkd-wait-online.service 有关。对 postfix、dovecot 和 nginx 运行检查 (systemctl status) 时,这 3 个服务器均显示“警告:由于权限不足,某些日志文件未打开。”。正常工作的服务器没有此警告。我已开始浏览 /etc/postfix (etc) 文件夹中的文件以比较权限。在此处列出状态文件是否有帮助?

在比较物理(工作)服务器和(有问题的)虚拟服务器之间的 systemd-networkd-wait-online.service 之后,虚拟服务器包含以下行:

$ sudo systemctl edit systemd-networkd-wait-online.service
### Editing /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
ExecStart=
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online -i enp0s3:degraded --timeout=30

### Edits below this comment will be discarded

物理服务器没有这些非注释行,所以我在虚拟服务器上删除了它们。它们已重新插入。

我还检查了 Netplan 配置:

$ sudo netplan --debug apply

** (generate:73362): DEBUG: 09:58:53.126: starting new processing pass
** (generate:73362): DEBUG: 09:58:53.127: eth0: adding new route
** (generate:73362): DEBUG: 09:58:53.127: We have some netdefs, pass them through a final round of validation
** (generate:73362): DEBUG: 09:58:53.127: eth0: setting default backend to 1
** (generate:73362): DEBUG: 09:58:53.127: Configuration is valid
** (generate:73362): DEBUG: 09:58:53.128: Generating output files..
** (generate:73362): DEBUG: 09:58:53.128: Open vSwitch: definition eth0 is not for us (backend 1)
** (generate:73362): DEBUG: 09:58:53.128: NetworkManager: definition eth0 is not for us (backend 1)
DEBUG:netplan generated networkd configuration changed, reloading networkd
DEBUG:Cannot call Open vSwitch: Cannot apply OVS cleanup: ovsdb-server.service is 'not-found'.
DEBUG:no netplan generated NM configuration exists
** (process:73361): DEBUG: 09:58:53.607: starting new processing pass
** (process:73361): DEBUG: 09:58:53.608: eth0: adding new route
** (process:73361): DEBUG: 09:58:53.608: We have some netdefs, pass them through a final round of validation
** (process:73361): DEBUG: 09:58:53.608: eth0: setting default backend to 1
** (process:73361): DEBUG: 09:58:53.608: Configuration is valid
DEBUG:Merged config:
b''
DEBUG:Link changes: {}
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for eth0
** (process:73361): DEBUG: 09:58:53.749: starting new processing pass
** (process:73361): DEBUG: 09:58:53.750: eth0: adding new route
** (process:73361): DEBUG: 09:58:53.751: We have some netdefs, pass them through a final round of validation
** (process:73361): DEBUG: 09:58:53.751: eth0: setting default backend to 1
** (process:73361): DEBUG: 09:58:53.751: Configuration is valid
DEBUG:Merged config:
b''

然后

$ sudo networkctl status

● Interfaces: 1, 2
       State: routable                        
Online state: online                          
     Address: xx.xx.xx.xx on eth0
              xx:xx:xx:xx:xx:xx on eth0
     Gateway: xx.xx.xx.xx on eth0
         DNS: 8.8.8.8
              208.67.222.222

Nov 25 17:00:42 example.com systemd-networkd[667]: eth0: found matching network '/run/systemd/network/10-netplan-eth0.network', based on potentially unpredictable interface name.
Nov 25 17:00:42 example.com systemd[1]: Starting systemd-networkd-wait-online.service - Wait for Network to be Configured...
Nov 25 17:00:43 example.com systemd-networkd[667]: eth0: Gained IPv6LL
Nov 25 17:01:12 example.com systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Nov 25 17:01:12 example.com systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Nov 25 17:01:12 example.com systemd[1]: Failed to start systemd-networkd-wait-online.service - Wait for Network to be Configured.
Nov 25 17:35:12 example.com systemd[1]: Starting systemd-networkd-wait-online.service - Wait for Network to be Configured...
Nov 25 17:35:42 example.com systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Nov 25 17:35:42 example.com systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Nov 25 17:35:42 example.com systemd[1]: Failed to start systemd-networkd-wait-online.service - Wait for Network to be Configured.

然后检查 Postfix、Dovecot 和 nginx

$ systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: enabled)
     Active: active (exited) since Mon 2024-11-25 17:55:25 UTC; 20min ago
       Docs: man:postfix(1)
    Process: 1875 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1875 (code=exited, status=0/SUCCESS)
        CPU: 4ms

Warning: some journal files were not opened due to insufficient permissions.

$ systemctl status dovecot
● dovecot.service - Dovecot IMAP/POP3 email server
     Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-11-25 17:55:20 UTC; 23min ago
       Docs: man:dovecot(1)
             https://doc.dovecot.org/
   Main PID: 719 (dovecot)
     Status: "v2.3.21 (47349e2482) running"
      Tasks: 17 (limit: 3481)
     Memory: 33.8M (peak: 40.8M)
        CPU: 552ms
     CGroup: /system.slice/dovecot.service
             ├─ 719 /usr/sbin/dovecot -F
             ├─ 732 dovecot/lmtp -L
             ├─ 733 dovecot/anvil
             ├─ 734 dovecot/log
             ├─ 735 dovecot/lmtp -L
             ├─ 736 dovecot/lmtp -L
             ├─ 737 dovecot/lmtp -L
             ├─ 738 dovecot/lmtp -L
             ├─ 740 dovecot/config
             ├─ 747 dovecot/stats
             ├─4383 dovecot/auth
             ├─4387 dovecot/auth -w
             ├─4388 dovecot/auth -w
             ├─4395 dovecot/dict
             ├─4396 dovecot/dict
             ├─4407 dovecot/imap-login
             └─4413 dovecot/imap

Warning: some journal files were not opened due to insufficient permissions.


$ systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-11-25 17:55:20 UTC; 25min ago
       Docs: man:nginx(8)
    Process: 741 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 838 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 859 (nginx)
      Tasks: 2 (limit: 3481)
     Memory: 5.0M (peak: 5.3M)
        CPU: 409ms
     CGroup: /system.slice/nginx.service
             ├─859 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─860 "nginx: worker process"

Warning: some journal files were not opened due to insufficient permissions.

最后,我发现系统工作正常,除非我使用 Roundcube,它会再次关闭端口。如果我仅通过 imap 访问电子邮件,端口将保持打开状态。

我收回刚才的话。它打开了一段时间,然后又关闭了。事实上,几个小时后它就来了又去。这可能是两个试图控制网络的组件之间的冲突吗?

我不知道 systemd-networkd-wait-online.service 的覆盖文件来自哪里。我尝试删除三行活动行,但下次查看时它们又重新出现。状态文件显示:

$ networkctl status eth0
● 2: eth0
                   Link File: /usr/lib/systemd/network/99-default.link
                Network File: /run/systemd/network/10-netplan-eth0.network
                       State: routable (configured)
                Online state: online                                                                       
                        Type: ether
                        Path: pci-0000:00:12.0
                      Driver: virtio_net
                      Vendor: Red Hat, Inc.
                       Model: Virtio network device
           Alternative Names: enp0s18
                              ens18
            Hardware Address: 00:16:3e:0b:31:2b (Xensource, Inc.)
                         MTU: 1500 (min: 68, max: 65535)
                       QDisc: fq_codel
IPv6 Address Generation Mode: eui64
    Number of Queues (Tx/Rx): 1/1
            Auto negotiation: no
                     Address: xx.xx.xx.xx
                              xx:xx:xx:xx:xx:xx
                     Gateway: xx.xx.xx.xx
                         DNS: 8.8.8.8
                              208.67.222.222
           Activation Policy: up
         Required For Online: yes
           DHCP6 Client DUID: DUID-EN/Vendor:0000ab11e96dc6ba966458ee
                Connected To: kv0632-185-127-18-185.localdomain.local on port d2:6f:9b:c0:5b:55 (tap2010i0)

和

$ networkctl status enp0s3
Interface "enp0s3" not found.

我已经用 eth0 修改了覆盖文件,因为我仍然无法删除这些行。它现在正在运行,但时间会证明一切。

这已解决问题。非常感谢 mpboden,尤其是他对下面给出的问题的清晰解释。

我说得太早了。启动才 24 个小时,所有端口就又全部关闭了。

从另一台机器:

% nmap taid.info
Starting Nmap 7.95 ( https://nmap.org ) at 2024-11-28 16:22 GMT
Nmap scan report for example.com (xx.xx.xx.xx)
Host is up (0.021s latency).
Not shown: 990 filtered tcp ports (no-response)
PORT    STATE  SERVICE
22/tcp  open   ssh
25/tcp  closed smtp
80/tcp  closed http
110/tcp closed pop3
143/tcp closed imap
443/tcp closed https
465/tcp closed smtps
587/tcp closed submission
993/tcp closed imaps
995/tcp closed pop3s

Nmap done: 1 IP address (1 host up) scanned in 35.61 seconds

并从虚拟服务器

$ networkctl status
● Interfaces: 2, 1
       State: routable                        
Online state: online                          
     Address: xx.xx.xx.xx on eth0
              xx:xx:xx:xx:xx:xx on eth0
     Gateway: xx.xx.xx.xx on eth0
              xx:xx:xx:xx:xx:xx on eth0
         DNS: 8.8.8.8
              208.67.222.222

唉……

networking
  • 1 个回答
  • 130 Views
Martin Hope
mpemburn
Asked: 2024-11-22 21:46:09 +0800 CST

需要安装有 PHP 7.4 的 Ubuntu

  • 7

我有一个客户,他的网站需要 PHP 7.4 来运行一些自定义代码。为了测试修复,我需要创建一个可以运行 7.4 的本地 VM,但据我所知,此版本不再可供安装。我希望能够找到一个预装了 7.4 的映像,可以在 VirtualBox 或 VMWare Fusion 下运行。有人有什么建议吗?

virtualbox
  • 1 个回答
  • 104 Views
Martin Hope
PhantomMenace
Asked: 2024-11-22 20:42:17 +0800 CST

如何让 macbook 使用自定义内核的 grub 启动?

  • 6

我已经在配备英特尔 i5 处理器的 MacBook Pro(2019 款)上安装了 Ubuntu 24.04,但触摸板和键盘不工作。

我知道

a) 关于这个问题有很多帖子

b) 有一个 T2 就绪发行版

但我想避免从头开始重新安装的麻烦。

我已经添加了相应的repo并运行命令:

sudo apt install -y linux-t2-lts

然而,重新启动后,触控板和键盘仍然完全没有响应。

我真的很感激任何关于从这一点来看是否有前进方向的反馈。

问题编辑:我看到安装了以下内核

# dpkg --list | grep linux-image
ii  linux-image-6.6.62-1-t2-noble                 6.6.62-1                                 amd64        Linux kernel, version 6.6.62-1-t2-noble
ii  linux-image-6.8.0-41-generic                  6.8.0-41.41                              amd64        Signed kernel image generic
rc  linux-image-6.8.0-48-generic                  6.8.0-48.48                              amd64        Signed kernel image generic
ii  linux-image-6.8.0-49-generic                  6.8.0-49.49                              amd64        Signed kernel image generic
ii  linux-image-generic-hwe-24.04                 6.8.0-49.49                              amd64        Generic Linux kernel image

但是尽管我运行了,sudo update-grub但在启动过程中从未提示我选择内核。我该如何指示 Linux 使用linux-image-6.6.62-1-t2-noble?

keyboard
  • 1 个回答
  • 50 Views
Martin Hope
Trololo
Asked: 2024-11-21 22:02:15 +0800 CST

当有多个可用网络/Wifi 接口时,仅使用优先级最高的网络/Wifi 接口的用户友好型“官方”方法是什么?通过 GUI?

  • 7

我通常的问题是如何确保Ubuntu 24.04 系统仅使用最高优先级的网络接口(我自己设置优先级)?最好以一种用户友好且“官方”的方式?

为了更清楚地说明我的意思,以下是我的具体用例:我在一台只有 2.4 GHz Wifi 模块的旧 HP 笔记本电脑上运行 Ubuntu 24.04,使用默认的 Gnome 桌面环境和负责网络的网络管理器。它有一个有线以太网端口,我还有一个 5 GHz Wifi USB 适配器。我想要的是:

  • 如果有线以太网端口已连接,则只使用该端口,不要担心任何 Wifi 端口。
  • 如果已连接 USB 加密狗,请使用它连接到 5 GHz Wifi AP(显然带有预存的凭据)
  • 其他情况下,使用内置 2.4 GHz Wifi 模块连接到 2.4 GHz Wifi AP

此外,我希望有一种“用户友好”的方式来解决这个问题,以便家庭中不懂技术的成员如果想要更好的覆盖范围,只需插入 USB 加密狗即可。

发生的情况是,两个 Wifi 适配器都被分配了一个有效的 IPv4 地址,并且都出现在路由表中。

需要明确的是,内置 Wifi 和 USB Wifi 适配器都可以工作,但问题是它们同时连接到同一个 IPv4 子网上的两个不同 SSID,而且 2.4 GHz 链路非常不稳定(因为有太多邻居的 2.4 GHz Wifi AP 信号可以到达我家)。

我曾经尝试过或者考虑过这些事情:

  • 使用设置对话框禁用内部 Wifi 模块。这最终禁用了内部模块和 USB Wifi 加密狗。不起作用。
  • 用来rfkill禁用内部模块 - 但这也会导致禁用 USB Wifi 加密狗,即使仅阻止内部 2.4 GHz 模块也是如此。我猜是 NetworkManager 解释了任何被阻止的 Wifi 设备,从而阻止了所有设备。不起作用。
  • 使用 删除涉及 2.4 GHz Wifi 模块的路由ip route del。这种方法有效,因为与 Wifi AP 的连接仍然存在,但没有通过 2.4 GHz 链路路由流量。这种方法有效,但如果笔记本电脑切换到另一个 AP,路由会重新添加,因此不是一个稳定的长期解决方案。
  • ip link set dev DEVICE down当检测到 5 GHz 设备时,在 2.4 GHz Wifi 接口上使用。这几乎与删除上述路由条目的解决方案相同,尚未测试过,但除非网络管理器重新启动它们,否则这应该有效。
  • 将内部模块的驱动程序列入黑名单。这不是一个可行的解决方案,因为每次连接/移除 USB Wifi 加密狗时都重新启动是不可接受的。
  • 删除所有 2.4 GHz AP 凭证。不可接受,因为我希望即使移除 USB Wifi 适配器,笔记本电脑也能“无缝”使用。

我是否遗漏了完全不同的方法?如果没有,我猜需要一个脚本来监控各种适配器的状态,该脚本使用ip route/ip link命令在检测到高优先级接口时禁用低优先级接口。我意识到这排除了将不同的网络适配器连接到不同网络的可能性,但如果我有这种特定的用例,我会解决它。

networking
  • 1 个回答
  • 120 Views
Martin Hope
labco mputer
Asked: 2024-11-21 14:06:45 +0800 CST

禁用英特尔 RST 时无法激活 C 盘

  • 6

我正在按照intel rst指南为我的戴尔笔记本电脑禁用它。更改注册表值并从 bios 启用 ahci 后,windows 无法重新启动(如指南中所述)。
然后在命令提示符中运行 diskpart(v 10.0.22621.1)时,在更改驱动器名称后,我们无法激活安装 windows 的卷。
当我们active这样做时,它说

The selected disk is not a fixed MBR Disk.
The ACTIVE command can only be used on fixed MBR Disks.

我的输出list volume是

Volume 0 || F || DATA       || NTFS || Partition || 731 GB || Healthy || 
Volume 1 || C || OS         || NTFS || Partition || 222 GB || Healthy || 
[...]
Volume 3 || E || WINRETOOLS || NTFS || Partition || 990 MB || Healthy ||  

我正在尝试安装 Ubuntu 22.04 LTS 版本,以及 Windows 11。

编辑 1:list disk显示我的两个磁盘都是 GPT,所以我们甚至可以active在非 MBR 磁盘上执行此操作。

编辑2:问题已解决!

list disk
select disk X (replace X with your disk with windows) 
list volume 
select volume Y (replace Y with your EFI System Partition (esp) number) 
assign letter=Z (assign an available letter to the EFI partition) 
exit
cd /d Z:\EFI\Microsoft\Boot 
bcdboot C:\Windows /s Z: /f ALL


我选择我的 Windows 磁盘的 esp 分区,然后当我在 z 上生成启动文件时,它就开始工作了。

dual-boot
  • 1 个回答
  • 19 Views
Martin Hope
funkyjive
Asked: 2024-11-21 08:41:52 +0800 CST

从 22.04 升级到 24.04 后随机重启;令人困惑

  • 6

大约 1 个月前,我将系统从 22.04 升级到 24.04。在此升级之前,系统非常稳定,没有问题。升级后,系统开始间歇性地自行重启。(即 Ubuntu 正在运行,但什么都没运行,或者实际上什么都没运行,然后我看到了 BIOS 屏幕)。

搜索后,我发现有人说“重新安装”。我备份了我的 /home/user 和 /etc,然后重新安装了 24.04。重新安装后,我只从 /etc 中获取了旧的 samba 配置,从 /home/user 中获取了用户文件,然后重新开始配置和使用我新安装的 Ubuntu 机器。令我惊讶的是,它再次间歇性地重新启动。很多时候机器只是放在那里,然后重新启动。

我对此感到困惑,因为它表现得好像是硬件问题,但升级前后硬件没有任何变化。机器的气流良好,没有理由怀疑过热。很多时候,它在重置时只是空转。

到目前为止,我解决或隔离问题的尝试包括(不一定按顺序):

  1. 将 BIOS 更新为最新版本。(MB 为 ASUS ROG STRIX B550-F (wifi))
  2. 完整的 memtest86。花了 2 小时 28 分钟全面测试 128GB,运行 SMP。我认为 SMP 很好,因为它可以测试处理器上的多个核心。没有失败。
  3. CPU 烧机测试,其中装载了我的 CPU (AMD Ryzen 5 5600X) 一段时间。没有失败。
  4. 已验证显卡的最新图形驱动程序(AMD Radeon RX 580)
  5. 使用 Unigine valley 执行了 GPU 测试。没有失败。
  6. 禁用主板上的 Wi-Fi 和蓝牙功能。仍然发生不受控制的重启
  7. 更换了新的电源。仍然发生不可控的重启。
  8. 我通过添加以下内容启用了内核调试日志记录(我认为):kernel.printk = 7 7 1 7到 /etc/sysctl.conf,然后通过使用以下命令验证是否已启用此功能cat /proc/sys/kernel/printk

我无法在日志中找出持续发生的任何事件。例如,如果我获取输出last reboot并查看最近的输出:

reboot   system boot  6.8.0-48-generic Wed Nov 20 16:01   still running
reboot   system boot  6.8.0-48-generic Wed Nov 20 15:43   still running
reboot   system boot  6.8.0-48-generic Wed Nov 20 15:25 - 15:43  (00:17)
reboot   system boot  6.8.0-48-generic Wed Nov 20 14:49 - 15:43  (00:53)
reboot   system boot  6.8.0-48-generic Wed Nov 20 14:40 - 14:48  (00:08)
reboot   system boot  6.8.0-48-generic Wed Nov 20 13:23 - 14:48  (01:24)
reboot   system boot  6.8.0-48-generic Wed Nov 20 12:19 - 14:48  (02:28)
reboot   system boot  6.8.0-48-generic Wed Nov 20 11:36 - 14:48  (03:12)

这些时间代表系统重新启动。通常,当系统出现故障并重新启动时,它会显示“仍在运行”,但随后会进行某种清理。上述几乎所有情况都代表不受控制的重新启动,但可能只有 2 次例外,当时我正在调整配置并想确保它处于活动状态。

如果我转到/var/log/kern.log并向后搜索“Linux 版本”(重启后的第一个日志),我可以看到重启前发生的日志。似乎没有始终相同的原因。例如,这里是 16:01。

2024-11-20T15:44:48.904343-07:00 svr kernel: audit: type=1400 audit(1732142688.903:192): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=4428 comm="snap-confine" capability=38  capname="perfmon"
2024-11-20T16:01:55.246557-07:00 svr kernel: Linux version 6.8.0-48-generic (buildd@lcy02-amd64-010) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 (Ubuntu 6.8.0-48.48-generic 6.8.12)

还有 15:43

2024-11-20T15:43:09.543269-07:00 svr kernel:  exe="/usr/bin/dbus-daemon" sauid=101 hostname=? addr=? terminal=?'
2024-11-20T15:43:35.769171-07:00 svr kernel: Linux version 6.8.0-48-generic (buildd@lcy02-amd64-010) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 (Ubuntu 6.8.0-48.48-generic 6.8.12)

首先请注意,日志之间存在明显的日志间隙。例如,16:01,最后一个内核日志与重启之间有 15 分钟的间隙。而在 15:43 重启时,间隔接近 20 秒。我见过其他重启,在重启之前的日志中存在二进制垃圾,例如这个:

2024-11-19T11:00:56.597426-07:00 svr kernel:  exe="/usr/bin/dbus-daemon" sauid=101 hostname=? addr=? terminal=?'
^@^@^@[many ^@ snipped]^@2024-11-19T11:03:04.550077-07:00 svr kernel: Linux version 6.8.0-48-generic (buildd@lcy02-amd64-010) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 (Ubuntu 6.8.0-48.48-generic 6.8.12)
2024-11-19T11:03:04.550299-07:00 svr kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-48-generic root=UUID=60c9acc4-90f4-4d74-acdc-ad21be5bbc15 ro quiet splash vt.handoff=7

我不知道发生了什么。这台机器在 22.04 上运行了好几年,运行良好且稳定。然后在我安装 24.04 后,它立即开始随机重置。在这些随机重置之间,它运行良好。 :(

如果有人可以告诉我“启用此设置”并查看此日志,我们可以找出重置的原因,我会很高兴的!!!

一条供认数据(只有在长时间的故障排除会议结束时才会出现的内容):

我儿子的机器上曾经有运行 Windows 的主板/处理器,而我的机器上还有其他硬件。发生了一些事情,他的 Windows 崩溃了——太糟糕了。我无法使用常规的 Windows USB 方式修复它,因此我使用 dd 从 /dev/zero 到他的驱动器从 Ubuntu USB 启动,将他的硬盘完全清零。我尝试了很多次,尝试了很多方法重新安装 Windows 10,但即使它实际上是一个全新的系统,它也无法正常工作。
我的最终结论是,我将使用这个主板/处理器,并将其与我机器上的主板/处理器交换。工作得很好,直到我安装了 Ubuntu 24.04。

鉴于这个问题的疯狂性质,我最好的猜测是:主板上某个地方发生了一些细微的硬件故障,导致 Windows 无法运行或安装。Ubuntu 22.04 运行良好,因为它可能没有使用那个硬件???然后 Ubuntu 24.04 的内核/软件中的一些变化现在使用了那个硬件,现在一切正常?奇怪的是我在 22.04 上取得了如此巨大的成功这么长时间。

我还有另外两个儿子,一个在这款主板和处理器组合上运行 Windows 10,另一个在这款主板和处理器组合上运行 Ubuntu 24.04。没问题。

既然不是电源问题,那么可能是主板上的某个组件出了问题,我应该好好哭一场然后花点钱买一个新的?

更新

呃!!更换主板后,我仍然遇到无法控制的重启!

reboot   system boot  6.8.0-49-generic Fri Nov 22 11:06   still running
reboot   system boot  6.8.0-49-generic Fri Nov 22 03:30   still running
reboot   system boot  6.8.0-49-generic Fri Nov 22 09:21 - 09:27  (00:05)
reboot   system boot  6.8.0-48-generic Wed Nov 20 18:12 - 09:21 (1+15:08)

怎么回事???新电源,新主板。CPU 已测试,内存已测试。

当系统处于空闲状态时,重新启动再次发生——我已经离开了。

更新2

更换电源板/电涌保护器没有效果。我正试图消除所有不必要的东西,看看是否能起到作用。

我断开了连接到充当第二台显示器的 4K 电视的 HDMI 电缆。我已将通过 Display Port 连接的 4K 显示器和通过 HDMI 连接的 4K 电视插入显卡。自从我断开连接以来,它已经运行了近 2 个小时。我打算让机器运行一整夜,并运行一些简单的应用程序。如果早上它仍然运行,我会觉得自己很愚蠢,但很高兴问题已经解决了。坏的 HDMI 电缆会造成这种情况吗?将计算机连接到 4K 电视是否不好?

解决

机器整晚都没有接上 HDMI 线到电视。我能想到的最好解释是,也许我在升级到 24.04 时不小心撞坏了电缆。真希望我先测试一下。@david 建议验证 22.04 上是否仍会发生这种情况,这可能是消除分析假设的良好诊断方法,但我当时不想花这个力气。我希望每个人都比我更聪明。:) 感谢所有投入精力或兴趣的人。

upgrade
  • 1 个回答
  • 68 Views
Martin Hope
SebMa
Asked: 2024-11-21 01:11:00 +0800 CST

如何安装特定的 LaTeX 软件包版本而不干扰已从 texlive-latex-* DEB 软件包安装的其他 LaTeX 软件包

  • 6

ptex-jtex包含 LaTeX 包的 DEB 包已从multicol.sty多元宇宙中删除:ptex-jtex。

EDIT0:我已经安装了texlive-latex-extra或texlive-latex-base包。

以下是我所做过的和所做的:

$ dpkg -l | grep texlive-
ii  texlive-base                          2023.20240207-1                         all          TeX Live: Essential programs and files
ii  texlive-binaries                      2023.20230311.66589-9build3             amd64        Binaries for TeX Live
ii  texlive-fonts-recommended             2023.20240207-1                         all          TeX Live: Recommended fonts
ii  texlive-latex-base                    2023.20240207-1                         all          TeX Live: LaTeX fundamental packages
ii  texlive-latex-extra                   2023.20240207-1                         all          TeX Live: LaTeX additional packages
ii  texlive-latex-recommended             2023.20240207-1                         all          TeX Live: LaTeX recommended packages
ii  texlive-pictures                      2023.20240207-1                         all          TeX Live: Graphics, pictures, diagrams
ii  texlive-plain-generic                 2023.20240207-1                         all          TeX Live: Plain (La)TeX packages
$
$ tlmgr init-usertree
$ tlmgr update --list
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)

tlmgr: Local TeX Live (2023) is older than remote repository (2024).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
$ tlmgr info multicol
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)

tlmgr: Local TeX Live (2023) is older than remote repository (2024).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
$

如何安装特定版本的LaTeX 包而不更新/破坏已从DEB 包multicol.sty安装的其他 LaTeX 包?texlive-latex-*

24.04
  • 1 个回答
  • 47 Views
Martin Hope
Bloodiey Wafflecat
Asked: 2024-11-20 10:24:58 +0800 CST

全新安装后无法启动 Ubuntu 24.04(多个 grub 错误)

  • 5

我的电脑是 HP Pavillion g4 笔记本电脑,我做了一些修改,例如安装 120GB SSD 驱动器、用 120GB HDD 驱动器替换 CD 驱动器以及将 RAM 从 4GB 扩展到 8GB。

当我安装 Ubuntu 时,我通常使用“擦除磁盘并安装 Ubuntu”选项,并且一直有效,直到上个月我尝试启动我的电脑时显示错误,当我返回 grub 时启动菜单出现故障所以我认为它需要重新安装,但是当我通过“擦除磁盘并安装 Ubuntu”安装 Ubuntu 时,我重新启动后它说unable to read and write outside of hd0和error: you need to load the kernel first。

我尝试了这里显示的一些解决方案:当我收到“尝试读取或写入磁盘‘hd0’之外的内容”错误并且启动修复无法解决问题时该怎么办?包括启动修复。

第一个:

grub rescue > ls
(hd0) (hd0, msdos9)
grub rescue > ls (hd0,msdos9)/
grub rescue > ls (hd0,msdos8)/
grub rescue > ls (hd0,msdos5)/ # suppose this is root and bootloader of Linux
grub rescue > ls (hd0,msdos5)/
grub rescue > set root=(hd0,msdos5)
grub rescue > set prefix=(hd0,msdos5)/boot/grub
grub rescue > insmod normal
grub rescue > normal

我的分区不同,但我设法使用ls命令找到它们。

添加 19/11/2024:分区是 GPT,所以我认为它可能支持 UEFI,但我仍然无法启动。

我尝试的另一种解决方案是创建一个 1024MB 的 ext4 分区,/boot该分区部分有效,但是......

  1. 启动时间太长了,说真的,我可以打开电脑,做早餐,看一些视频,但它仍然启动时出现黑屏,延迟太多才显示 Ubuntu plymouth 屏幕,有时会导致超时或内核崩溃。
  2. 破坏了一些工具,比如 haxeflixel(我认为),在此问题之前,我没有遇到任何问题,但当我使用/boot分区启动时。它可以工作,但有很多错误,其中之一是“分段错误”。

当我安装其他基于 Ubuntu 的发行版(如 Linux Mint 或 Elementary OS)时也会发生这种情况,我总是在 SSD 上安装 Ubuntu,我的 PC 不支持 GPT,所以我必须使用 mbr。我使用 Rufus 从 Windows 制作了启动驱动器。

编辑 19/11/2024:当我尝试https://paste.ubuntu.com/p/hw3vFSmpKs/时,我设法获得了一个 pastebin

============================= Boot Repair Summary ==============================

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will purge (in order to reset grubenv) and reinstall the grub2 of
sda2 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s


chroot /mnt/boot-sav/sda2 apt-get -y update
Running in chroot, ignoring command 'start'
Purge the GRUB of /dev/sda2
grub-pc available

0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 210 not upgraded.
DEBCHECK debOK, grub-pc
DEBCHECK debOK
Please type: sudo chroot "/mnt/boot-sav/sda2" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda2" apt-get install -fynsudo chroot "/mnt/boot-sav/sda2" apt-get purge --allow-remove-essential -y grub-com*nsudo chroot "/mnt/boot-sav/sda2" apt-get purge --allow-remove-essential -y grub2-com*nsudo chroot "/mnt/boot-sav/sda2" apt-get purge --allow-remove-essential -y shim-signednsudo chroot "/mnt/boot-sav/sda2" apt-get purge --allow-remove-essential -y grub-common:*nsudo chroot "/mnt/boot-sav/sda2" apt-get purge --allow-remove-essential -y grub2-common:*n
Then type: sudo chroot "/mnt/boot-sav/sda2" apt-get install -y grub-pc

Unhide GRUB boot menu in sda2/etc/default/grub

====================== Reinstall the grub-pc of /dev/sda2 ======================

chroot /mnt/boot-sav/sda2 grub-install --version
grub-install (GRUB) 2.12-1ubuntu7

==> Reinstall the GRUB of /dev/sda2 into the MBR of /dev/sda

chroot /mnt/boot-sav/sda2 grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub'
Found linux image: /boot/vmlinuz-6.8.0-41-generic
Found initrd image: /boot/initrd.img-6.8.0-41-generic
Adding boot menu entry for UEFI Firmware Settings ...

Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda (ATA HP SSD S600 120G) disk!

The boot files of [sda2 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

```none
============================ Boot Info After Repair ============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 2048 
    of the same hard drive for core.img. core.img is at this location and 
    looks for (,gpt2)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v1.99-2.00) is installed in the MBR of /dev/sdb and looks at sector 
    58715260 of the same hard drive for core.img, but core.img can not be 
    found at this location.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (hd0,msdos1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    biosdisk part_msdos fshelp fat ntfs exfat
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 

sdc1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  MSWIN4.1: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /efi/boot/bootx64.efi 
                       /efi/boot/grubx64.efi /efi/boot/mmx64.efi


================================ 1 OS detected =================================

OS#1 (linux):   Ubuntu 24.04.1 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: F.66(15.102) from Insyde
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda : is-GPT,   hasBIOSboot,    has-noESP,  not-usb,    not-mmc, has-os,    no-wind,    2048 sectors * 512 bytes
sdb : is-GPT,   no-BIOSboot,    has-noESP,  not-usb,    not-mmc, no-os, no-wind,    2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda2    : is-os,    64, apt-get,    grub-pc ,   grub2,  grub-install,   grubenv-ng, update-grub,    end-after-100GB
sdb1    : no-os,    64, nopakmgr,   no-docgrub, nogrub, nogrubinstall,  no-grubenv, noupdategrub,   end-after-100GB

Partitions info (2/3): _________________________________________________________

sda2    : isnotESP, fstab-without-efi,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, ext4
sdb1    : isnotESP, part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, 

Partitions info (3/3): _________________________________________________________

sda2    : not--sepboot, with-boot,  fstab-without-boot, not-sep-usr,    with--usr,  fstab-without-usr,  std-grub.d, sda
sdb1    : maybesepboot, no---boot,  part-has-no-fstab,  not-sep-usr,    no---usr,   part-has-no-fstab,  no--grub.d, sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 12D46356-934D-4D7E-9872-E4C77430651D
     Start       End   Sectors   Size Type
sda1   2048      4095      2048     1M BIOS boot
sda2   4096 234438655 234434560 111.8G Linux filesystem
Disk sdb: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 4C9C1BF6-251D-4B61-86CC-7A7636193869
     Start       End   Sectors   Size Type
sdb1   2048 234438655 234436608 111.8G Linux filesystem
Disk sdc: 29.49 GiB, 31666995200 bytes, 61849600 sectors
Disk identifier: 0x0b08ce25
     Boot Start      End  Sectors  Size Id Type
sdc1  *     2048 61849599 61847552 29.5G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:120GB:scsi:512:512:gpt:ATA HP SSD S600 120G:;
1:1049kB:2097kB:1049kB:::bios_grub;
2:2097kB:120GB:120GB:ext4::;
sdb:120GB:scsi:512:512:gpt:ATA FUJITSU MHW2120B:;
1:1049kB:120GB:120GB:::;
sdc:31.7GB:scsi:512:512:msdos:Generic Flash Disk:;
1:1049kB:31.7GB:31.7GB:fat32::boot, lba;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1                                               858dfb0d-3d56-4566-b7d6-9ed8594070b7             
└─sda2 ext4     81808195-6491-4c20-8ed7-35ebee622523 09f3ace7-51d7-4f26-aed4-3cde10f0f282             
sdb                                                                                                   
└─sdb1                                               bfe953ef-47e9-4e41-a55f-545178bede4c             
sdc                                                                                                   
└─sdc1 vfat     D221-7693                            0b08ce25-01                          UBUNTU 24_0 

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda2               93.9G   9% /mnt/boot-sav/sda2
/dev/sdc1               23.7G  20% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda2              ext4            rw,relatime
/dev/sdc1              vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Ubuntu   81808195-6491-4c20-8ed7-35ebee622523
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/81808195-6491-4c20-8ed7-35ebee622523 / ext4 defaults 0 1
/swap.img   none    swap    sw  0   0

======================= sda2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

==================== sda2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
  28.141605377 = 30.216818688   boot/grub/i386-pc/core.img                     1
  11.531497955 = 12.381851648   boot/vmlinuz                                   1
  11.531497955 = 12.381851648   boot/vmlinuz-6.8.0-41-generic                  1
  11.531497955 = 12.381851648   boot/vmlinuz.old                               1
   7.126949310 = 7.652503552    boot/initrd.img                                2
   7.126949310 = 7.652503552    boot/initrd.img-6.8.0-41-generic               2
   7.126949310 = 7.652503552    boot/initrd.img.old                            2

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18133 Apr  4  2024 10_linux
-rwxr-xr-x 1 root root 43202 Apr  4  2024 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Apr  4  2024 20_linux_xen
-rwxr-xr-x 1 root root   786 Apr  4  2024 25_bli
-rwxr-xr-x 1 root root 13120 Apr  4  2024 30_os-prober
-rwxr-xr-x 1 root root  1174 Apr  4  2024 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr  4  2024 40_custom
-rwxr-xr-x 1 root root   215 Apr  4  2024 41_custom

====================== sdc1/boot/grub/grub.cfg (filtered) ======================

Try or Install Ubuntu
Ubuntu (safe graphics)
Boot from next volume
UEFI Firmware Settings
Test memory

==================== sdc1: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             

我的规格是:

英特尔酷睿 i5-2550M (4) 3.100GHz 第二代
8GB RAM
120GB SSD 和 120GB HDD

我正在尝试使用 gnome 安装 Ubuntu

boot
  • 1 个回答
  • 96 Views
Martin Hope
Bernmeister
Asked: 2024-11-20 09:15:15 +0800 CST

获取 Ubuntu 系列列表

  • 6

我想以编程方式获取所有 Ubuntu 系列的列表,按发布顺序排列(最好通过 URL)。如果我在 2024 年 7 月左右获取列表,它会显示

oracular, noble, mantic,..., warty

而截至 2024 年 11 月的名单将是

plucky, oracular, noble, mantic,..., warty

查看Launchpad 网络服务,canonical-kernel-team我可以使用https://api.launchpad.net/1.0/~canonical-kernel-team/+archive/ubuntu/ppa?ws.op=getPublishedBinaries&status=Published获取用户已发布的二进制文件,但这是我所能获得的最大限度……而且我不想要特定的用户/项目,而是想要所有系列的列表。

此外,我还担心,如果上述 API 可以使用,那么它可能已经过时了,因为有对 2015 年 4 月左右 EOL 的引用。

launchpad
  • 1 个回答
  • 37 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