Installing Linux Acronis Cyber Protection Agent - can't find directory that contains kernel sources

Sep 30, 2020
6
1
3
40
Hi Proxmox

On a new test server, we are testing a backup service that we can implement on our live servers. This is a fresh install without any modifications other than what has been detailed in this guide: https://www.layerstack.com/resource...l-Acronis-Backup-Agent-on-Linux-Cloud-Servers
apt-get update
apt-get dist-upgrade
apt-get install rpm
apt-get install gcc
apt-get install make
apt-get install perl

When installing, we run into a bit of a kernel roadblock? -:
prox1.png

The text of the error reads:
Failed to find directory '/lib/modules/5.4.34-1-pve/build' that contains the kernel sources required for the installation. You can manually install the sources that exactly match your kernel version or update the kernel to the version of the sources that you have. Then, repeat the installation. For details, refer to https://kb.acronis.com/content/1556.

Would you have any guidance on the part that mentions "You can manually install the sources that exactly match your kernel version" or anything else we can do to complete the installation of this agent?

I've read articles that we may need to install on a guest OS and back up that way, but we thought it would be cleaner to install directly into the servers.

We come from a Hyper-V & VMWare environment and are really impressed with Proxmox, so looking to switch everything over, but just need to get over the usual continuity issue. We also don't know much about Linux, mostly cobbling together as much as possible from forums.

As Acronis partners, we thought to leverage our internal use rights cloud repository to backup offsite.

Any help or advice would be highly appreciated. Have a great day.
 
Thanks uguz

When trying apt install pve-headers-$(uname -r) we get:

root@PROXTEST:~# apt install pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-headers-5.4.34-1-pve
E: Couldn't find any package by glob 'pve-headers-5.4.34-1-pve'
E: Couldn't find any package by regex 'pve-headers-5.4.34-1-pve'

Is there something that should have been done before this command?

We've tried Proxmox Backup Server, but couldn't understand how to back up the configuration of the Proxmox host using this. The VMs are good - they're all backed up using Proxmox, but the configuration of the host was what has lead us to giving it up.
 
Is there something that should have been done before this command?

check if everything is installed correctly (pveversion -v output can show you the versions). run apt update beforehand.

i can see the package:
Code:
apt search pve-headers '5.4.34'
Sorting... Done
Full Text Search... Done
pve-headers-5.4.34-1-pve/testing,stable,testing 5.4.34-2 amd64
  The Proxmox PVE Kernel Headers
 
Hi oguz

I tried a few different things, but not successful. Looks that apt update didn't work, and I believe that's because this is a test Proxmox server that doesn't have a subscription.

Do we need a subscription applied to the server in order to use apt update and have The Proxmox PVE Kernel Headers installed?

On a new test server, this is the code below, my commands in pink and the error that makes me believe the above is in green.

Code:
Linux testprox 5.4.34-1-pve #1 SMP PVE 5.4.34-2 (Thu, 07 May 2020 10:02:02 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

root@testprox:~# apt update
Get:1 http://ftp.uk.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]                                             
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [51.9 kB]                                                 
Err:4 https://enterprise.proxmox.com/debian/pve buster InRelease                            
  401  Unauthorized [IP: 212.224.123.70 443]
Get:5 http://ftp.uk.debian.org/debian buster/main amd64 Packages [7,906 kB]
Get:6 http://security.debian.org buster/updates/main amd64 Packages [233 kB]
Get:7 http://security.debian.org buster/updates/main Translation-en [126 kB]     
Get:8 http://ftp.uk.debian.org/debian buster/main Translation-en [5,968 kB]                     
Get:9 http://ftp.uk.debian.org/debian buster/contrib amd64 Packages [50.5 kB]                                                                 
Get:10 http://ftp.uk.debian.org/debian buster/contrib Translation-en [44.5 kB]                                                                
Get:11 http://ftp.uk.debian.org/debian buster-updates/main amd64 Packages [7,868 B]                                                           
Get:12 http://ftp.uk.debian.org/debian buster-updates/main Translation-en [5,672 B]                                                           
Reading package lists... Done                                                                                                                 
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease  401  Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@testprox:~# apt search pve-headers '5.4.34'
Sorting... Done
Full Text Search... Done

root@testprox:~# apt install pve-headers
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pve-headers

root@testprox:~# apt search pve-headers '5.4.34'
Sorting... Done
Full Text Search... Done
root@testprox:~# apt install pve-headers
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pve-headers
root@testprox:~# apt install pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pve-headers-5.4.34-1-pve
E: Couldn't find any package by glob 'pve-headers-5.4.34-1-pve'
E: Couldn't find any package by regex 'pve-headers-5.4.34-1-pve'
root@testprox:~#
 
I have the same situation with Acronis Cyber Agent.
1. repository:
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
# security updates
deb http://security.debian.org/debian-security buster/updates main contrib
2.root@kvm2:~# apt search pve-headers '5.4.34'
Sorting... Done
Full Text Search... Done
pve-headers-5.4.34-1-pve/stable,stable 5.4.34-2 amd64
The Proxmox PVE Kernel Headers
root@kvm2:~#
3.
root@kvm2:~# apt install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-5.4.78-2-pve
E: Couldn't find any package by glob 'linux-image-5.4.78-2-pve'
E: Couldn't find any package by regex 'linux-image-5.4.78-2-pve'
4.
root@kvm2:~# apt install pve-headers-5.4.34-1-pve
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pve-headers-5.4.34-1-pve
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9947 kB of archives.
After this operation, 67.7 MB of additional disk space will be used.
Get:1 http://download.proxmox.com/debian/pve buster/pvetest amd64 pve-headers-5.4.34-1-pve amd64 5.4.34-2 [9947 kB]...
.........
ok.
5.
root@kvm2:/distr# apt-get install linux-image-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-5.4.78-2-pve
E: Couldn't find any package by glob 'linux-image-5.4.78-2-pve'
E: Couldn't find any package by regex 'linux-image-5.4.78-2-pve'

 
I have the same situation with Acronis Cyber Agent.

In the end, we installed on a server that had a subscription and access to the repositories.

The notes about do say that if you are doing this on a test environment that you can use the test repositories, but I lack fundamental Linux knowledge that I don't expect Proxmox guys to teach (it's not their job).

When using the Proxmox live repositories, Acronis Cyber Cloud installed without a problem (following the links I've provided) and is backing up nicely.
 
  • Like
Reactions: Deni74

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!