zhaodice / proxmox-ve-anti-detection

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

Unable to install all build-dep packages #17

Open AndreyRz opened 8 months ago

AndreyRz commented 8 months ago

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

I have this after mk-build-deps --install and make give me this result

test -f "qemu/configure" || git submodule update --init --recursive fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory. fatal: clone of 'git://git.proxmox.com/git/mirror_qemu' into submodule path '/root/pve-qemu/qemu' failed Failed to clone 'qemu'. Retry scheduled fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory. fatal: clone of 'git://git.proxmox.com/git/mirror_qemu' into submodule path '/root/pve-qemu/qemu' failed Failed to clone 'qemu' a second time, aborting make: *** [Makefile:20: submodule] Error 1

What I should to do to fix this? I do it in vm with proxmox 8.0-2 with ovmf, other settings is default. I launch make in pve-qemu directory. And apt update give me this

Err:1 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease 401 Unauthorized [IP: 212.224.123.70 443] Hit:2 https://mirrors.ustc.edu.cn/debian bookworm InRelease Hit:3 https://mirrors.ustc.edu.cn/debian bookworm-updates InRelease Hit:4 https://mirrors.ustc.edu.cn/debian bookworm-backports InRelease Hit:5 https://mirrors.ustc.edu.cn/debian-security bookworm-security InRelease Hit:6 https://mirrors.ustc.edu.cn/proxmox/debian bookworm InRelease Ign:7 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm InRelease Hit:8 https://mirrors.ustc.edu.cn/proxmox/debian/devel bookworm InRelease Err:9 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm Release 404 Not Found [IP: 202.141.160.110 443] Reading package lists... Done N: Ignoring file 'pve-enterprise.list.deleted' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease 401 Unauthorized [IP: 212.224.123.70 443] E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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. E: The repository 'https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm Release' does not have a Release file. 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. N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware' N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split

zhaodice commented 8 months ago

remove any https://enterprise.proxmox.com/ source from your apt

AndreyRz commented 8 months ago

Do you mean this?

root@andrey:/etc/apt# cd sources.list.d/ root@andrey:/etc/apt/sources.list.d# ls -l total 8 -rw-r--r-- 1 root root 74 Jun 22 2023 ceph.list -rw-r--r-- 1 root root 70 Jun 21 2023 pve-enterprise.list root@andrey:/etc/apt/sources.list.d#

AndreyRz commented 8 months ago

I change it to deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription but still have this error when apt update

N: Ignoring file 'pve-enterprise.list.deleted' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: The repository 'https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm Release' does not have a Release file. 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. N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware' N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split

https://prnt.sc/8TRWMNGngV8o And I have such errors in web interface of repositories setings

AndreyRz commented 8 months ago

I gave him trusted parameter to it and it start work, but now i have this

Err:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages 404 Not Found [IP: 202.141.160.110 443] N: Ignoring file 'pve-enterprise.list.deleted' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Failed to fetch https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific/dists/bookworm/main/binary-amd64/Packages 404 Not Found [IP: 202.141.160.110 443] E: Some index files failed to download. They have been ignored, or old ones used instead. N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware' N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split

mustafa1750 commented 8 months ago

remove any https://enterprise.proxmox.com/ source from your apt

Can you add the latest version compiled for the new pve-qemu-kvm?

AndreyRz commented 8 months ago

I have defeated the problem with repositories, but it gives an error when make

fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory.

Since we're up to it

wget "https://github.com/zhaodice/proxmox-ve-anti-detecion/raw/main/001-anti-detection.patch " -O qemu/001-antidetection.patch

please tell me how to get around it?

AndreyRz commented 7 months ago

ANy idea how to fix it?

zhaodice commented 7 months ago

I think PVE 8.0.2 is suitable, others version I didn’t test. and I cannot reinstall my proxmox-VE in production

AndreyRz commented 7 months ago

Yes, I use 8.0-2, but when try make, it give me error because we wget patch.sh to build directory, as I understand it should be empty for this, didn't you miss anything in the instructions?

zhaodice commented 7 months ago

fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory.

please describe which command you have excuted to produce those?

AndreyRz commented 7 months ago

Everything is according to your instructions + disable enterprise repo and after "make" I get this error, as I remember when build other things it always give me error when something appears in build directory, is the directory for wget .sh correctly in your instruction?

zhaodice commented 7 months ago

try: rm -rf /root/pve-qemu/qemu you must ensure mk-build-deps --install is successful then you can execute

wget "https://github.com/zhaodice/proxmox-ve-anti-detecion/raw/main/001-anti-detection.patch" -O qemu/001-anti-detection.patch
AndreyRz commented 7 months ago

apt update give me this

root@pve:~# apt update Hit:1 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease Hit:2 https://mirrors.ustc.edu.cn/debian bookworm InRelease Hit:3 https://mirrors.ustc.edu.cn/debian bookworm-updates InRelease Hit:4 https://mirrors.ustc.edu.cn/debian bookworm-backports InRelease Hit:5 https://mirrors.ustc.edu.cn/debian-security bookworm-security InRelease Hit:6 https://mirrors.ustc.edu.cn/proxmox/debian bookworm InRelease Ign:7 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm InRelease Hit:8 https://mirrors.ustc.edu.cn/proxmox/debian/devel bookworm InRelease Ign:9 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm Release Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Ign:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Ign:10 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main all Packages Err:11 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main amd64 Packages 404 Not Found [IP: 202.141.176.110 443] Ign:12 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en Ign:13 https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bookworm/main Translation-en_US Reading package lists... Done N: Ignoring file 'pve-enterprise.list.deleted' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Failed to fetch https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific/dists/bookworm/main/binary-amd64/Packages 404 Not Found [IP: 202.141.176.110 443] E: Some index files failed to download. They have been ignored, or old ones used instead. N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware' N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split

and no more errors during the all process, only at end I have build error

test -f "qemu/configure" || git submodule update --init --recursive Submodule 'qemu' (git://git.proxmox.com/git/mirror_qemu) registered for path 'qemu' fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory. fatal: clone of 'git://git.proxmox.com/git/mirror_qemu' into submodule path '/root/pve-qemu/qemu' failed Failed to clone 'qemu'. Retry scheduled fatal: destination path '/root/pve-qemu/qemu' already exists and is not an empty directory. fatal: clone of 'git://git.proxmox.com/git/mirror_qemu' into submodule path '/root/pve-qemu/qemu' failed Failed to clone 'qemu' a second time, aborting make: *** [Makefile:20: submodule] Error 1

AndreyRz commented 7 months ago

Ok, I found temporary solution, wget patch file to pve-qemu folder, not to pve-qemu/qemu, then try to make, get an error that there is no patch file, make clean second time, mv patch file to qemu directory and make second time will give your patched deb file. I think there is an error in your instruction somewhere in wget directory or something there