我正在尝试安装从官方 GitHub 存储库下载的 Rocker Chat。我执行以下命令:
sudo apt install ./rocketchat_2.17.11_amd64.deb
安装后我收到此消息:
N: Download is performed unsandboxed as root as file '/home/deepdows/Downloads/rocketchat_2.17.11_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
当我尝试运行 rocketchat-desktop 时,我得到:
[bugsnag] Loaded!
[24506:0420/152301.161454:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap
但如果我这样做,rocketchat-desktop --disable-gpu-sandbox
它就会运行良好。
我已经尝试过了
sudo chown _apt /var/lib/update-notifier/package-data-downloads/partial/
sudo chmod -Rv 700 /var/cache/apt/archives/partial/
sudo chmod -Rv 755 /var/cache/apt/archives/partial/
sudo chown -Rv _apt:root /var/cache/apt/archives/partial/
sudo chmod 777 rocketchat_2.17.11_amd64.deb
毫无效果
答案1
这意味着_apt
用户无权访问已下载的 apt 文件。
这通常是由于该Downloads
文件夹默认位于/home/user
文件夹内(就您而言/home/deepdows
),并且该文件夹默认情况下其他人无法读取。
只需移动rocketchat_2.17.11_amd64.deb
到/tmp
例如,然后从那里安装:您将摆脱该警告。