jiangcuo / Proxmox-Arm64

Proxmox VE & PBS unofficial arm64 version
GNU Affero General Public License v3.0
387 stars 41 forks source link

error instaling from repo smartmontools_7.2-pve1_arm64.deb File has unexpected size (527124 != 535744) #27

Closed Pull3D closed 1 year ago

Pull3D commented 1 year ago

error instaling from repo smartmontools_7.2-pve1_arm64.deb File has unexpected size (527124 != 535744)

`root@prox4m1:/home/pull# root@prox4m1:/home/pull# apt install proxmox-ve postfix open-iscsi Reading package lists... Done Building dependency tree... Done Reading state information... Done open-iscsi is already the newest version (2.1.3-5). postfix is already the newest version (3.5.18-0+deb11u1). proxmox-ve is already the newest version (7.3-1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: smartmontools : Depends: libc6 (>= 2.34) but 2.31-13+rpt2+rpi1+deb11u5 is to be installed Depends: libstdc++6 (>= 11) but 10.2.1-6 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). root@prox4m1:/home/pull# apt --fix-broken install Reading package lists... Done Building dependency tree... Done Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: smartmontools Suggested packages: gsmartcontrol smart-notifier The following packages will be upgraded: smartmontools 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 8 not fully installed or removed. Need to get 536 kB of archives. After this operation, 47.1 kB disk space will be freed. Do you want to continue? [Y/n] Y Get:1 https://mirrors.apqa.cn/proxmox pvearm/main arm64 smartmontools arm64 7.2-pve1 [536 kB] Err:1 https://mirrors.apqa.cn/proxmox pvearm/main arm64 smartmontools arm64 7.2-pve1 File has unexpected size (527124 != 535744). Mirror sync in progress? [IP: 152.70.92.238 443] Hashes of expected file:

3dn0 commented 1 year ago

Hello !

I've got the same error trying to install it on top of a debian11 on an ampere platform. The workaround I've tried is working but I don't think that a Proxmox installed this way would be good for production. Anyway.

Just grab the corresponding iso file and mount it. Then install the missing package from the package folder on the iso. Re-start the proxmox install, and it should go smoothly.

Have fun testing :)

ja-finn commented 1 year ago

Same issue here converting from a Pimox install. Instead of loading it from the ISO you can just install it from the main repo. You can either pin the package or, if you don't know how to do that, just comment out the proxmox-arm repo, run apt update && apt install smartmontools and then enable the proxmox-arm repo again.

jiangcuo commented 1 year ago

Hi all. I'm very sorry for this. This issue may cause by package break when sync repo. My home server has failed and I'm on a business trip. I can't fix this issue right now. The temporary workaround is to download the problematic package and then install it. like smartmontools

wget https://mirrors.apqa.cn/d/proxmox/pool/main/s/smartmontools/smartmontools_7.2-pve1_arm64.deb
dpkg -i smartmontools_7.2-pve1_arm64.deb
the-impaler commented 1 year ago

I came here with this problem too, but dpkg throws a dependency problem when I try to force install the smartmontools package after using wget to grab it using the above instructions :-(

the dependency problems are libc6 and libstdc++6 which both say that smartmontools requires a higher level (> 2.34 abd >11 respectiely) than the version which is installed on the system currently (2.31-13 and 10.2.1-6 respectively).

Any ideas or shall we just be patient? :-)

Thanks!

jiangcuo commented 1 year ago

Hi all, we can build smartmontools from source code. for pve8

apt update && apt install build-* git  devscripts -y
git clone  https://git.proxmox.com/git/smartmontools.git
cd smartmontools
git checkout proxmox/bookworm
yes| mk-build-deps --install --remove
make deb

for pve7

apt update && apt install build-* git  devscripts -y
git clone  https://git.proxmox.com/git/smartmontools.git
cd smartmontools
git checkout proxmox/bullseye
yes| mk-build-deps --install --remove
make deb
jiangcuo commented 1 year ago

fixed.