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
    • 最新
    • 标签
主页 / unix / 问题 / 724589
Accepted
Saeed Neamati
Saeed Neamati
Asked: 2022-11-13 01:00:42 +0800 CST2022-11-13 01:00:42 +0800 CST 2022-11-13 01:00:42 +0800 CST

坚持使用 SSH 在远程 Debian 11 bullseye 上安装 Google Chrome

  • 772

我正在尝试在我拥有的 VPS 上安装 Google Chrome。

VPS 有Debian GNU/Linux 11 (bullseye)它。

我ssh root@ip用来连接。我运行这些命令:

apt-get update 
apt upgrade
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome
dpkg -i chrome

但我看到这些错误:

(Reading database ... 73725 files and directories currently installed.)
Preparing to unpack chrome ...
Unpacking google-chrome-stable (107.0.5304.110-1) over (107.0.5304.110-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on fonts-liberation; however:
  Package fonts-liberation is not installed.
 google-chrome-stable depends on libnspr4 (>= 2:4.9-2~); however:
  Package libnspr4 is not installed.
 google-chrome-stable depends on libnss3 (>= 2:3.26); however:
  Package libnss3 is not installed.
 google-chrome-stable depends on xdg-utils (>= 1.0.2); however:
  Package xdg-utils is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.69) ...
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 google-chrome-stable

当我尝试安装时,fonts-liberation我看到了这些错误:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 google-chrome-stable : Depends: libnspr4 (>= 2:4.9-2~) but it is not going to be installed
                        Depends: libnss3 (>= 2:3.26) but it is not going to be installed
                        Depends: xdg-utils (>= 1.0.2) but it is not going to be installed
                        Recommends: libu2f-udev but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我没有尝试--fix-broken,因为我害怕破坏这个 VPS 上的东西。

如何在 Debian 11 bullseye 上安全地安装 Google Chrome?

更新 这是输出apt policy:

root@3rag:~# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
     release o=Docker,a=bullseye,l=Docker CE,c=stable,b=amd64
     origin download.docker.com
 500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://debian.mirror.serveriai.lt/debian bullseye/non-free amd64 Packages
     release v=11.5,o=Debian,a=stable,n=bullseye,l=Debian,c=non-free,b=amd64
     origin debian.mirror.serveriai.lt
 500 http://debian.mirror.serveriai.lt/debian bullseye/contrib amd64 Packages
     release v=11.5,o=Debian,a=stable,n=bullseye,l=Debian,c=contrib,b=amd64
     origin debian.mirror.serveriai.lt
 500 http://debian.mirror.serveriai.lt/debian bullseye/main amd64 Packages
     release v=11.5,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=amd64
     origin debian.mirror.serveriai.lt
Pinned packages:
root@3rag:~# 
debian
  • 2 2 个回答
  • 51 Views

2 个回答

  • Voted
  1. Best Answer
    Stephen Kitt
    2022-11-13T02:41:58+08:002022-11-13T02:41:58+08:00

    dpkg只处理给定的单个包,它不知道如何解决依赖关系;因此,当您运行时dpkg -i chrome,它能够确定许多依赖项未得到满足,但它自己无法满足它们。它仍然安装了 Chrome 软件包,但未对其进行配置。

    这就是导致在apt的后续输出中提到的原因:

    You might want to run 'apt --fix-broken install' to correct these.
    

    这样做(apt install -f作为 root,与 相同apt --fix-broken install)安装丢失的包以解决已安装包的依赖关系。

    为避免将来出现这种情况,您可以apt直接使用它来安装下载的包,方法是为其提供包的路径:

    apt install ./chrome
    

    或者

    apt install ./google-chrome-stable_current_amd64.deb
    

    无需重命名下载的文件。

    • 3
  2. JdeHaan
    2022-11-13T01:38:49+08:002022-11-13T01:38:49+08:00

    根据我的经验,您可以安全地运行修复损坏的安装。最坏的情况是它会更新包,你将不得不恢复。您可以在 /var/log/apt/history.log 中找到它更新/修复的内容,包括版本号。

    [免责声明] 它是开源的,YMMV。

    • 1

相关问题

  • GRUB 配置以识别同一 Linux 发行版的不同桌面环境(安装)

  • astyle 不会更改源文件格式

  • 接收有关全新 Debian 的电子邮件

  • Debian Stretch:libgs_plugin_systemd-updates.so 中的 gnome-software 段错误

  • 如何在拼音输入法中输入ü?

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