N: 是什么意思?安装 deb 包时遇到错误“N:下载以非沙盒形式以 root 身份执行。”但安装成功

N: 是什么意思?安装 deb 包时遇到错误“N:下载以非沙盒形式以 root 身份执行。”但安装成功

每次尝试安装时都会出现错误。我尝试清除并重新安装,但没有帮助。我还尝试更改权限,例如这篇文章建议。结果相同。

sudo apt install /home/privileged/Downloads/brave/vivaldi-stable_3.8.2259.42-1_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'vivaldi-stable' instead of '/home/privileged/Downloads/brave/vivaldi-stable_3.8.2259.42-1_amd64.deb'
Recommended packages:
  adobe-flashplugin
The following NEW packages will be installed:
  vivaldi-stable
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/82.5 MB of archives.
After this operation, 282 MB of additional disk space will be used.
Get:1 /home/privileged/Downloads/brave/vivaldi-stable_3.8.2259.42-1_amd64.deb vivaldi-stable amd64 3.8.2259.42-1 [82.5 MB]
Selecting previously unselected package vivaldi-stable.
(Reading database ... 257032 files and directories currently installed.)
Preparing to unpack .../vivaldi-stable_3.8.2259.42-1_amd64.deb ...
Unpacking vivaldi-stable (3.8.2259.42-1) ...
Setting up vivaldi-stable (3.8.2259.42-1) ...
update-alternatives: using /usr/bin/vivaldi-stable to provide /usr/bin/vivaldi (vivaldi) in auto mode
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for bamfdaemon (0.5.4-1) ...
Rebuilding /usr/share/applications/bamf-2.index...
N: Download is performed unsandboxed as root as file '/home/privileged/Downloads/brave/vivaldi-stable_3.8.2259.42-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

运行带有 xorg 和 xfce4 的 debian 10。

答案1

这似乎只是一条信息警告。来自Unix SE:apt get 或其他类似程序中的错误行前缀 w 是什么意思

N表示通知。通知是程序希望您注意的事项,但不是警告。典型的通知aptN: There is 1 additional version. Please use the '-a' switch to see it

您的具体错误信息

N:下载以 root 身份未沙盒化执行,因为文件 '/home/privileged/Downloads/brave/vivaldi-stable_3.8.2259.42-1_amd64.deb' 无法被用户 '_apt' 访问。- pkgAcquire::Run (13:权限被拒绝)

似乎表明您的下载已完成,root因此在提取和安装之前用于执行检查/下载的沙盒用户(_aptapt无法访问它。

这实际上不是一个错误,而是一个通知,系统无法验证正在安装的软件包,只是让您知道发生了一些“正常”之外的事情。

相关内容