zhaodice / proxmox-ve-anti-detection

A patch to hide PVE itself
241 stars 36 forks source link

Unable to install pve-qemu-kvm-build-deps #20

Open vavasoul opened 7 months ago

vavasoul commented 7 months ago

Hello again i try to patch proxmox 8.1.4 with your patch for 8.1 qemu

have this problem:

root@pve1:~/pve-qemu# mk-build-deps --install
dpkg-buildpackage: info: source package pve-qemu-kvm-build-deps
dpkg-buildpackage: info: source version 8.1.2-6
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@pve1.loacal>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_auto_install --destdir=debian/pve-qemu-kvm-build-deps/
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'pve-qemu-kvm-build-deps' in '../pve-qemu-kvm-build-deps_8.1.2-6_all.deb'.
 dpkg-genbuildinfo --build=binary -O../pve-qemu-kvm-build-deps_8.1.2-6_amd64.buildinfo
 dpkg-genchanges --build=binary -O../pve-qemu-kvm-build-deps_8.1.2-6_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
Selecting previously unselected package pve-qemu-kvm-build-deps.
(Reading database ... 68223 files and directories currently installed.)
Preparing to unpack pve-qemu-kvm-build-deps_8.1.2-6_all.deb ...
Unpacking pve-qemu-kvm-build-deps (8.1.2-6) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) pve-qemu-kvm-build-deps:amd64 < 8.1.2-6 @iU K Nb Ib >
Broken pve-qemu-kvm-build-deps:amd64 Depends on librbd-dev:amd64 < none @un H > (>= 0.48)
  Considering librbd-dev:amd64 0 as a solution to pve-qemu-kvm-build-deps:amd64 -2
  Removing pve-qemu-kvm-build-deps:amd64 rather than change librbd-dev:amd64
Done
 Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages will be REMOVED:
  pve-qemu-kvm-build-deps
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 10.2 kB disk space will be freed.
N: Ignoring file 'pve-enterprise.list.deleted' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n]
(Reading database ... 68224 files and directories currently installed.)
Removing pve-qemu-kvm-build-deps (8.1.2-6) ...
mk-build-deps: Unable to install pve-qemu-kvm-build-deps at /usr/bin/mk-build-deps line 459.
mk-build-deps: Unable to install all build-dep packages

The line 459 is " Unable to install $pkg";"

  );
            if ($status ne 'installed' || ($? >> 8)) {
                # Restore system to previous state, since $install_tool wasn't
                # able to resolve a proper way to get the build-dep packages
                # installed
                warn "$progname: Unable to install $pkg";
                $err = 1;
            } elsif ($opt_remove) {
                unlink $deb_files[$i];
                unlink $buildinfo_files[$i];
                unlink $changes_files[$i];

Please tell me how to solve this problem

zhaodice commented 7 months ago

My proxmox version is 8.0.2-3, I didn't try the other versions, because I have no reason to break my stable enviroment...

vavasoul commented 7 months ago

i try your version now 8.0.2-3 , all repositiry dependens no mistakes all good. i try mk-build-deps --install

Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.6-1) ...
mk-build-deps: Unable to install pve-qemu-kvm-build-deps at /usr/bin/mk-build-deps line 459.
mk-build-deps: Unable to install all build-dep packages
vavasoul commented 7 months ago

but i have this files after bad try

-rw-r--r-- 1 root root 2680 Feb 20 20:21 pve-qemu-kvm-build-deps_8.0.2-3_all.deb
-rw-r--r-- 1 root root 4794 Feb 20 20:22 pve-qemu-kvm-build-deps_8.0.2-3_amd64.buildinfo
-rw-r--r-- 1 root root 1120 Feb 20 20:22 pve-qemu-kvm-build-deps_8.0.2-3_amd64.changes
zhaodice commented 7 months ago

see https://askubuntu.com/questions/1333585/how-to-fix-mk-build-deps-unable-to-install-all-build-dep-packages ? you can try 8.0.3 And, I recommend you start a proxmox LXC or VM to compile it , in case of dependents pollution (just move the compiled qemu deb into the host and install)

zhaodice commented 7 months ago

i try your version now 8.0.2-3 , all repositiry dependens no mistakes all good. i try mk-build-deps --install

Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.6-1) ...
mk-build-deps: Unable to install pve-qemu-kvm-build-deps at /usr/bin/mk-build-deps line 459.
mk-build-deps: Unable to install all build-dep packages

of course you can install the release https://github.com/zhaodice/proxmox-ve-anti-detection/releases/tag/8.0.2 deb,install the patched proxmox's qemu, if you compile process is difficult.