Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64900 - [virtualbox 6.1.0] https to update.virtualbox.org is attempted on VirtualBox execution

Attached to Project: Arch Linux
Opened by deleted due to FS#64430 not being updated in due time (vV0RKY0O5c) - Thursday, 19 December 2019, 22:54 GMT
Last edited by freswa (frederik) - Friday, 21 February 2020, 14:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details


Description:
Executing /usr/bin/VirtualBox causes a https request to host update.virtualbox.org


Additional info:
* package version(s)
local/virtualbox 6.1.0-1
Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-host-dkms 6.1.0-1
VirtualBox Host kernel modules sources

* config and/or log files etc.
config file assumed not existing initially: /home/user/.config/VirtualBox/VirtualBox.xml

* link to upstream bug report, if any
(unaware of, and didn't search)

The config file /home/user/.config/VirtualBox/VirtualBox.xml is created/saved when VirtualBox exits.

Steps to reproduce:
$ rm /home/user/.config/VirtualBox/VirtualBox.xml
$ sudo pacman -S virtualbox
//choose 1 for dkms when prompted (probably irrelevant for this bug report, unless using custom kernel?)
//
//run tcpdump or similar to see dns request and https attempt to update.virtualbox.org when running the following command:
$ /usr/bin/VirtualBox


I notice that an attempt is made to disable updates here: https://git.archlinux.org/svntogit/community.git/tree/trunk/LocalConfig.kmk?h=packages/virtualbox&id=c35beadf3b99dc224b7e7fc6df2d7a283b5499e9#n33
like so:
# no update request. update are handled via pacman
VBOX_WITH_UPDATE_REQUEST := 0

It seems to not be working as intended.

There is a special case when the update check doesn't happen:
when /home/user/.config/VirtualBox/VirtualBox.xml has a line like the following(the line appears when modifying the following setting(from its defaults) File->Preferences->Update->Check for Updates and then exiting the GUI to save the xml):
<ExtraDataItem name="GUI/UpdateDate" value="1 d, 2019-12-20, stable, 6.1.0"/>
the update check isn't performed if today or tomorrow is 20 dec 2019. To force it, change it to 2019-12-02 for example, then it sees more than 1 day has passed so it will update check!

This task depends upon

Closed by  freswa (frederik)
Friday, 21 February 2020, 14:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  6.1.2-1
Comment by deleted due to FS#64430 not being updated in due time (vV0RKY0O5c) - Thursday, 19 December 2019, 23:40 GMT
ok, this patch works for me, both when the config file doesn't exist and when it does with the setting set to update
it just sets the setting to Never at the root
Comment by deleted due to FS#64430 not being updated in due time (vV0RKY0O5c) - Friday, 20 December 2019, 00:26 GMT
the above patch works but I also wanted it to save the config in the xml file, not just in the menu, so made new one that went a bit overboard too:

and the saved line is:
<ExtraDataItem name="GUI/UpdateDate" value="never"/>
Comment by gentoo_eshoes (gentoo_eshoes) - Friday, 24 January 2020, 21:06 GMT

Loading...