您尚未登录。

#1 2022-03-18 08:10:55

驿窗
驿窗
所在地: 基础开源研究
注册时间: 2016-06-03
帖子: 928
个人网站

安装openssh报错:Detected unsafe path transition / (owned by

下面是执行命令sudo pacman -S openssh后的输出,这是啥情况?

[peter@Arch ~]$ sudo pacman -S openssh
[sudo] password for peter: 
warning: openssh-8.9p1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) openssh-8.9p1-1

Total Download Size:   1.09 MiB
Total Installed Size:  4.18 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 openssh-8.9p1-1-...  1113.4 KiB  3.98 MiB/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) reinstalling openssh                         [######################] 100%
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Creating temporary files...
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib/colord.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/dbus.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/lock.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/lock.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/cache.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/sudo.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd/netif.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd/netif.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/systemd/netif.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib/systemd.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/cache.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib/tpm2-tss/system.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/tpm2-tss.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var.
Detected unsafe path transition / (owned by peter) → /etc (owned by root) during canonicalization of /etc/brlapi.key.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/b7a27c1e1b70427d9430eafa431ee715.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/b7a27c1e1b70427d9430eafa431ee715.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/b7a27c1e1b70427d9430eafa431ee715.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/remote.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/lib/libvirt/qemu.
Detected unsafe path transition / (owned by peter) → /sys (owned by root) during canonicalization of /sys/devices/system/cpu/microcode.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev/snd/timer.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev/net/tun.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev/fuse.
Detected unsafe path transition / (owned by peter) → /dev (owned by root) during canonicalization of /dev/kvm.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/log/journal.
Detected unsafe path transition / (owned by peter) → /run (owned by root) during canonicalization of /run/log/journal.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/b7a27c1e1b70427d9430eafa431ee715/system.journal.
Detected unsafe path transition / (owned by peter) → /var (owned by root) during canonicalization of /var/log/journal/b7a27c1e1b70427d9430eafa431ee715/system.journal.
error: command failed to execute correctly
(3/3) Arming ConditionNeedsUpdate...

开源/Linux大众化,从驿窗开始~

离线

#2 2022-03-18 08:16:54

SamLukeYes
会员
所在地: Canton, China
注册时间: 2020-07-19
帖子: 320
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

试试 sudo chown root:root /

离线

#3 2022-03-18 11:42:57

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

你怎么 own 了 / 呢?

离线

#4 2022-03-18 15:17:39

驿窗
驿窗
所在地: 基础开源研究
注册时间: 2016-06-03
帖子: 928
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

不太清楚,有一个可能是在系统安装时反复用到live环境并arch-chroot后装一些东西。

这个问题是可修复的么?还是说,最好重装?

二楼的命令说“试试”,我有点没底~

最近编辑记录 驿窗 (2022-03-18 15:18:36)


开源/Linux大众化,从驿窗开始~

离线

#5 2022-03-18 15:35:22

SamLukeYes
会员
所在地: Canton, China
注册时间: 2020-07-19
帖子: 320
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

驿窗 说:

二楼的命令说“试试”,我有点没底~

毕竟我也没遇到过你这种情况,不知道为什么你会让普通用户拥有根目录(

离线

#6 2022-03-18 16:12:04

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

改回去呗。记得别加 -R。

离线

#7 2022-03-18 17:03:16

驿窗
驿窗
所在地: 基础开源研究
注册时间: 2016-06-03
帖子: 928
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

没关系,我重装下。
之前安装时反复搞了几次才装好,很久不装手生了~


开源/Linux大众化,从驿窗开始~

离线

#8 2022-03-18 17:16:26

驿窗
驿窗
所在地: 基础开源研究
注册时间: 2016-06-03
帖子: 928
个人网站

Re: 安装openssh报错:Detected unsafe path transition / (owned by

发现了这个问题,还不清楚有没有别的问题,干脆重装~


开源/Linux大众化,从驿窗开始~

离线

页脚