id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	guest	host
1767	Linux installer fails if there is a tape drive => Fixed in 1.6.4	andyt		Hi,\r\n\r\nLinux installer (install.sh script) assumes that there is no tape drive on the host system.  When there is one, root account typically has $TAPE defined:\r\n{{{\r\nbash-3.1# echo $TAPE\r\n/dev/tape\r\n}}}\r\nThis is where tar is looking by default.  For some reason, installer does not use `-f' (which it should, to avoid ambiquity), when trying to untar itself, and the result is the following error:\r\n{{{\r\nbash-3.1# sh VirtualBox-1.6.2-Linux_x86.run \r\nVerifying archive integrity... All good.\r\nUncompressing VirtualBox for Linux installation........\r\nVirtualBox Version 1.6.2 (Sat May 31 04:03:49 CEST 2008) installation\r\nRemoving previous installation of VirtualBox 1.6.0 from /opt/VirtualBox-1.6.0\r\nInstalling VirtualBox to /opt/VirtualBox-1.6.2\r\ntar: /dev/tape: Cannot open: No such file or directory\r\ntar: Error is not recoverable: exiting now\r\nError installing VirtualBox.  Installation aborted\r\n}}}\r\nEasy (and ugly) fix would be to add one line at the beginning of the script:\r\n{{{\r\n[ -z $TAPE ] || unset TAPE\r\n}}}\r\n\r\nProper fix would be the one below:\r\n\r\n{{{\r\nbash-3.1# diff install.sh install.sh.fixed \r\n261c261\r\n<     bzip2 -d -c VirtualBox.tar.bz2 | tar -t > $CONFIG_DIR/$CONFIG_FILES\r\n---\r\n>     bzip2 -d -c VirtualBox.tar.bz2 | tar -tf - > $CONFIG_DIR/$CONFIG_FILES\r\n267c267\r\n<         log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -t > '"$CONFIG_DIR/$CONFIG_FILES"'".'\r\n---\r\n>         log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -tf - > '"$CONFIG_DIR/$CONFIG_FILES"'".'\r\n272c272\r\n<     bzip2 -d -c VirtualBox.tar.bz2 | tar -x -C $INSTALLATION_DIR\r\n---\r\n>     bzip2 -d -c VirtualBox.tar.bz2 | tar -xf - -C $INSTALLATION_DIR\r\n281c281\r\n<         log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -x -C '"$INSTALLATION_DIR"'".'\r\n---\r\n>         log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -xf - -C '"$INSTALLATION_DIR"'".'\r\n}}}	defect	closed	major	other	VirtualBox 1.6.2	fixed	install.sh tape		other	other
