wofferl / proxmox-backup-arm64

Script for building Proxmox Backup Server 3.x (Bookworm) for Armbian64
151 stars 12 forks source link

Suggestion Install Script. #37

Closed regix1 closed 1 year ago

regix1 commented 1 year ago

Server Install:

sudo apt install $(find . -type f \ ( -name "libjs-extjs_all.deb" \ -o -name "libjs-qrcodejsall.deb" \ -o -name "libproxmox-acme-pluginsall.deb" \ -o -name "pbs-i18nall.deb" \ -o -name "proxmox-backup-docsall.deb" \ -o -name "proxmox-backup-serverarm64.deb" \ -o -name "proxmox-mini-journalreaderarm64.deb" \ -o -name "proxmox-widget-toolkitall.deb" \ -o -name "pve-xtermjs*_arm64.deb" ))

Error: N: Download is performed unsandboxed as root as file '/root/proxmox-backup-arm64/packages/proxmox-backup-docs_3.0.2-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Potential Fix: chmod -R o+r /root/proxmox-backup-arm64/packages/

regix1 commented 1 year ago

This script will find the latest build version. Made it really easy to update from 2 to 3.

wofferl commented 1 year ago

Error: N: Download is performed unsandboxed as root as file '/root/proxmox-backup-arm64/packages/proxmox-backup-docs_3.0.2-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

The problem is that you downloaded or build the packages in the home directory of the root user /root

apt uses the internal _apt user when installing files. This user has no access to /root and its subdirectories. To fix this the packages folder needs to be in a place where the _apt user has access to.