Azure

[Tips] N: Download is performed unsandboxed as root as file '/root/vscode/vscodeserver.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Azure 仮想マシンのUbuntu にVisual Studio Code Serverをインストールするときにメッセージが表示されたので調査しました。

N: Download is performed unsandboxed as root as file '/root/vscode/vscodeserver.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

 

上記のようなメッセージが表示されます。

結論としては無視して構いません。

apt でインストールする場合に _aptが利用されるが権限も問題で発生するようです。

下記で解決方法が記載されています。

https://askubuntu.com/questions/908800/what-does-this-apt-error-message-download-is-performed-unsandboxed-as-root
https://askubuntu.com/questions/908800/what-does-this-apt-error-message-download-is-performed-unsandboxed-as-root

askubuntu.com

しかし、これでは解決できません。無視しても構わないとあります。

また下記でも言及されています。

problems with _apt user privileges in upgrading from Jessie to Stretch [solved?]
problems with _apt user privileges in upgrading from Jessie to Stretch [solved?]

lists.debian.org

Docker Desktopのインストールでも起きる可能性があるようです。

Ubuntu に Docker Desktop をインストール — Docker-docs-ja 24.0 ドキュメント
Ubuntu に Docker Desktop をインストール — Docker-docs-ja 24.0 ドキュメント

docs.docker.jp

 

ということで無視しましょう。

 

-Azure
-