apt命令安装本地deb报错问题
Download is performed unsandboxed as root as file '/home/ivo/n2n_3.0.0-1038_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
以上的报错权限问题
非常好处理,直接把包移动到 /tmp 目录下再去装就好了,不用管权限问题。
ivo@debian:/tmp$ sudo apt install ./n2n_3.0.0-1038_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'n2n' instead of './n2n_3.0.0-1038_amd64.deb'
Suggested packages:
uml-utilities
The following NEW packages will be installed:
n2n
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/532 kB of archives.
After this operation, 2,682 kB of additional disk space will be used.
Get:1 /tmp/n2n_3.0.0-1038_amd64.deb n2n amd64 3.0.0-1038 [532 kB]
Preconfiguring packages ...
Selecting previously unselected package n2n.
(Reading database ... 111844 files and directories currently installed.)
Preparing to unpack /tmp/n2n_3.0.0-1038_amd64.deb ...
Unpacking n2n (3.0.0-1038) ...
Setting up n2n (3.0.0-1038) ...
Rebuilding ld cache...
Glob pattern passed to check, but globs are not supported for this.
Invalid unit name "edge@*.service" escaped as "edge@\x2a.service".
edge@*.service is a disabled or a static unit not running, not starting it.
Glob pattern passed to check, but globs are not supported for this.
Invalid unit name "edge-ntopng@*.service" escaped as "edge-ntopng@\x2a.service".
edge-ntopng@*.service is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.11.2-2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.