From 50f45d5a30af4c4191f620900fa2f6548bab372f Mon Sep 17 00:00:00 2001 From: lishanshan Date: Sat, 29 Aug 2020 14:17:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0FAQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/zh/docs/Administration/FAQ-54.md | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/content/zh/docs/Administration/FAQ-54.md b/content/zh/docs/Administration/FAQ-54.md index 4f2b42046..aa3187598 100644 --- a/content/zh/docs/Administration/FAQ-54.md +++ b/content/zh/docs/Administration/FAQ-54.md @@ -177,3 +177,32 @@ Error: ``` 3. 重新进行升级操作。 + + +### 问题现象 + +通过dnf update 默认方式升级openssh软件包时会出现无法安装openssh相关包,提示如下: + + + ``` + cannot install both openssh-7.8p1-8.oe1.aarch64 and openssh-8.2p1-5.oe1.aarch64 + cannot install both openssh-7.8p1-8.oe1.aarch64 and openssh-8.2p1-4.oe1.aarch64 + cannot install the best update condidate for package openssh-clients-8.2p1-5.oe1.aarch64 + cannot install the best update condidate for package openssh-8.2p1-5.oe1.aarch64 + + ``` + +### 原因分析 + +DNF 默认情况下会启用DNF包管理器的“best”模式(对应的参数为--best),该默认选型将始终尝试将升级的包升级到可用的最高版本,即使最高版本无法完全满足它需要的依赖关系。如果使用默认启用的DNF best模式,将提醒用户更新的软件包版本可用但不能满足依赖性。如果出现问题,DNF会提示用户相关依赖问题,以便用户知道。openEuler社区开发人员正在寻求进行此默认更改,以防由于依赖性问题导致无法进行安全修复程序包升级,在当前前提下,它可能会被默默忽略而用户不会意识到。此外,使用DNF最佳模式将迅速提醒开发人员升级路径中的问题。 + +### 解决方案 + +DNF的--nobest选项可用于覆盖/关闭默认的“best”行为,以使用户需要升级的包存在依赖问题的场景下可以正常进行安全修改程序包的升级。 +本次openEuler 20.03-LTS版本中开发人员已识别到在openssh包安全修复版本升级过程中会存在该场景,建议用户了解上面的分析的情况下,选择合理的升级方式,openEuler同步给出具体升级示例操作: + + + ``` + dnf update –y –nobest openssh + + ``` \ No newline at end of file -- Gitee From 93394858b4f08386ce1a352421e9411965b7f098 Mon Sep 17 00:00:00 2001 From: lishanshan Date: Sat, 29 Aug 2020 14:18:37 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=94=B9FAQ=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/zh/docs/Administration/FAQ-54.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/zh/docs/Administration/FAQ-54.md b/content/zh/docs/Administration/FAQ-54.md index aa3187598..b5aa2fed5 100644 --- a/content/zh/docs/Administration/FAQ-54.md +++ b/content/zh/docs/Administration/FAQ-54.md @@ -179,6 +179,8 @@ Error: 3. 重新进行升级操作。 +## 通过dnf update 默认方式升级openssh软件包时无法安装openssh相关包 + ### 问题现象 通过dnf update 默认方式升级openssh软件包时会出现无法安装openssh相关包,提示如下: -- Gitee From 1e385cb09d93050c72d5d43b230a377285ac3f87 Mon Sep 17 00:00:00 2001 From: lishanshan Date: Sat, 29 Aug 2020 14:23:48 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\256\241\347\220\206\346\234\215\345\212\241.md" | 12 ------------ 1 file changed, 12 deletions(-) diff --git "a/content/zh/docs/Administration/\347\256\241\347\220\206\346\234\215\345\212\241.md" "b/content/zh/docs/Administration/\347\256\241\347\220\206\346\234\215\345\212\241.md" index 4ad3fba84..855780d47 100644 --- "a/content/zh/docs/Administration/\347\256\241\347\220\206\346\234\215\345\212\241.md" +++ "b/content/zh/docs/Administration/\347\256\241\347\220\206\346\234\215\345\212\241.md" @@ -148,18 +148,6 @@ systemd开启和监督整个系统是基于unit的概念。unit是由一个与

一组用于管理系统进程分层组织的units。

- - - -

Snapshot unit

- - -

.snapshot

- - -

systemd manager的保存状态。

- -

Socket unit

-- Gitee