Package: virtualbox-ext-pack
Version: 7.0.10-2
Severity: important

Dear Maintainer,

Since installing virtualbox-ext-pack_7.0.10-2, apt throws errors at me:

```
Setting up virtualbox-ext-pack (7.0.10-2) ...
virtualbox-ext-pack: downloading: 
https://download.virtualbox.org/virtualbox/7.0.10/Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack
The file will be downloaded into /var/cache/virtualbox-ext-pack
/
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack: expected 
af84dccac488df72bfaeb1eb8c922ba466668561a6ac05c64a7f8b6ebdddbaeb, removing the 
file.
dpkg: error processing package virtualbox-ext-pack (--configure):
 installed virtualbox-ext-pack package post-installation script subprocess 
returned error exit status 1
Errors were encountered while processing:
 virtualbox-ext-pack
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

However, the file appears to have the correct sha256sum:


```sh
$  sha256sum 
/var/cache/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack
 
af84dccac488df72bfaeb1eb8c922ba466668561a6ac05c64a7f8b6ebdddbaeb  
/var/cache/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpack
```

looking at the sourcecode of the postinst script it seems obvious that the
sha256sum (and 'vboxmanage') invocation cannot find the downloaded file as the 
`cd -` is called
before invoking invoking these commands with a *relative* filename.

putting the 'cd -' after the 'vboxmanage' line fixes the problem.

probably a better solution would be to:
- use absolute filenames
- download the file with 'wget -O "${absolute_file} ..." (rather than performing
  change-directory operations)


cheers



-- System Information:
Debian Release: trixie/sid
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages virtualbox-ext-pack depends on:
ii  ca-certificates        20230311
ii  debconf [debconf-2.0]  1.5.82
ii  virtualbox             7.0.10-dfsg-3
ii  wget                   1.21.3-1+b2

virtualbox-ext-pack recommends no packages.

virtualbox-ext-pack suggests no packages.

-- debconf information:
* virtualbox-ext-pack/license: true

Reply via email to