You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04.3 LTS安装Chrome时systemd-hwe-hwdb 249.11.3获取失败的问题求助

Ubuntu 22.04.3 LTS安装Chrome时systemd-hwe-hwdb 249.11.3获取失败的问题求助

问题描述

我在Ubuntu 22.04.3 LTS上安装Chrome时碰到了404错误,具体是systemd-hwe-hwdb_249.11.3_all.deb这个包找不到。安装过程的错误输出如下:

The following NEW packages will be installed:

fonts-liberation google-chrome-stable libgbm1 libu2f-udev libwayland-server0

systemd-hwe-hwdb udev

0 upgraded, 7 newly installed, 0 to remove and 17 not upgraded.

Need to get 2,453 kB/107 MB of archives.

After this operation, 351 MB of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 fonts-liberation all 1:1.07.4-11 [822 kB]

Get:2 /tmp/google-chrome-stable_current_amd64.deb google-chrome-stable amd64 120.0.6099.109-1 [105 MB]

Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libwayland-server0 amd64 1.20.0-1ubuntu0.1 [34.3 kB]

Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgbm1 amd64 23.0.4-0ubuntu1~22.04.1 [33.1 kB]

Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 udev amd64 249.11-0ubuntu3.11 [1,557 kB]

Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libu2f-udev all 1.1.10-3build2 [4,190 B]

Err:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd-hwe-hwdb all 249.11.3

404 Not Found [IP: 185.125.190.36 80]

Fetched 2,450 kB in 3s (712 kB/s)

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd-hwe/systemd-hwe-hwdb_249.11.3_all.deb 404 Not Found [IP: 185.125.190.36 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我是按照以下步骤操作的:

  • sudo apt-get update
  • wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P /tmp
  • sudo apt-get install -y /tmp/google-chrome-stable_current_amd64.deb

现在想请教大家,怎么解决这个systemd-hwe-hwdb_249.11.3_all.deb不存在的问题?

解决方案

遇到这种404问题,大概率是软件源的包索引没及时更新,或者这个版本的包已经被仓库里的新版本替换了,试试下面几个实用的办法:

  1. 强制刷新源索引并修复缺失项
    先执行带修复参数的源更新,让APT自动同步最新的包信息:

    sudo apt-get update --fix-missing
    

    完成后再重新安装Chrome:

    sudo apt-get install -y /tmp/google-chrome-stable_current_amd64.deb
    
  2. 先安装仓库中可用的systemd-hwe-hwdb版本
    先查一下当前仓库里有哪些可用的systemd-hwe-hwdb版本:

    apt-cache policy systemd-hwe-hwdb
    

    然后安装查到的最新可用版本(比如假设查到的是249.11.2,就替换成实际版本号):

    sudo apt-get install systemd-hwe-hwdb=249.11.2
    

    装完这个依赖后再重新安装Chrome就不会卡在这里了。

  3. 用--fix-broken修复残留依赖
    如果之前的安装已经装了部分包,用这个命令可以自动补全缺失的依赖:

    sudo apt-get install --fix-broken
    

    这个命令会处理所有未完成的依赖问题,之后再安装Chrome应该就能顺利完成了。

  4. 切换国内镜像源
    有时候官方源同步慢或者节点问题,换成国内的镜像源(比如清华、阿里云)可能直接解决。步骤如下:

    • 先备份原来的源文件:
      sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
      
    • 编辑源文件,替换成清华的jammy源:
      sudo nano /etc/apt/sources.list
      
      将内容替换为:
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
      
    • 保存退出后更新源,再安装Chrome:
      sudo apt-get update
      sudo apt-get install -y /tmp/google-chrome-stable_current_amd64.deb
      

我自己之前碰到类似的源同步问题,用第一个方法就搞定了,你可以先试试第一个方案哦~

备注:内容来源于stack exchange,提问作者Zac

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 12:48:10