/ usr / sbin / vbox-uninstall-guest-additions - uninstall.sh: Tidak ada file atau direktori seperti itu


1

ISU

Saya menggunakan plugin vbguest dotless 'vbguest untuk menjaga tambahan tamu Virtualbox saya diperbarui.

Mencoba memasang penambahan tamu sekarang menggunakan

$ vagrant vbguest --iso VBoxGuestAdditions_5.2.18.iso --do install

memberi saya:

$ vagrant vbguest --iso VBoxGuestAdditions_5.2.18.iso --do install --no-cleanup -f
[helix_dev] GuestAdditions versions on your host (5.2.8) and guest (5.0.16) do not match.
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirror.nl.leaseweb.net
* extras: mirror2.hs-esslingen.de
* updates: ftp.rz.uni-frankfurt.de
755 packages excluded due to repository priority protections
Package kernel-devel-3.10.0-862.11.6.el7.x86_64 already installed and latest version
Package kernel-devel-3.10.0-862.11.6.el7.x86_64 already installed and latest version
Package gcc-4.8.5-28.el7_5.1.x86_64 already installed and latest version
Package binutils-2.27-28.base.el7_5.1.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package 4:perl-5.16.3-292.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Copy iso file VBoxGuestAdditions_5.2.18.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /dev/loop0 is write-protected, mounting read-only
Forcing installation of Virtualbox Guest Additions 5.2.18 - guest version is 5.0.16
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.18 Guest Additions for Linux........
VirtualBox Guest Additions installer
/usr/sbin/vbox-uninstall-guest-additions: line 9: /opt/VBoxGuestAdditions-5.2.18/uninstall.sh: No such file or directory
Failed to remove existing installation.  Aborting...
An error occurred during installation of VirtualBox Guest Additions 5.2.18. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Redirecting to /bin/systemctl start vboxadd.service
Failed to start vboxadd.service: Access denied
See system logs and 'systemctl status vboxadd.service' for details.

Memasang VirtualboxAdditions di dalam VM dan menjalankan VBoxLinuxAdditions.run secara manual menghasilkan

$ sudo ./VBoxLinuxAdditions.run install
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
VirtualBox Guest Additions installer
/usr/sbin/vbox-uninstall-guest-additions: line 9: /opt/VBoxGuestAdditions-5.2.18/uninstall.sh: No such file or directory
Failed to remove existing installation.  Aborting...

Jadi saya pikir itu tidak terhubung ke plugin dotless '.

ANALISA SAAT INI

Folder /opt/VBoxGuestAdditions-5.2.18 yang direferensikan tidak ada, yang saya anggap sebagai akar masalah, jadi uninstall.sh juga tidak ada jelas.

Tampaknya prosedur pengaturan sulit - memerlukan prosedur penghapusan untuk menjalankan yang tidak ada lagi.

Sepertinya saya tidak bisa mendapatkan folder itu kembali, apa pun yang saya coba (belum).

Saya harap kalian punya ide apa yang bisa saya lakukan.

Informasi tambahan:

Saya menggunakan host Windows 10 dengan tamu CentOS 7:

cat /etc/*-release
CentOS Linux release 7.5.1804 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.5.1804 (Core)
CentOS Linux release 7.5.1804 (Core)

Versi Virtualbox saya adalah 5.2.8, versi Vagrant saya

$ vagrant version
Installed Version: 2.0.4
Latest Version: 2.1.2

Informasi untuk seseorang yang menemukan ini: Saya tidak bisa mendapatkan folder itu kembali. Saya masih senang atas saran bagaimana saya mungkin mendekati masalah ini untuk referensi di masa mendatang. Namun kali ini, "perbaikan" adalah untuk membuang VM yang rusak dan penyediaan kembali sepenuhnya.
Worp

Jawaban:


0

Penanganan Masalah: Pada Fedora 30 saya (sebagai tamu) saya membuat uninstall.sh yang diperlukan dalam folder khusus dan menambahkan bendera yang dapat dieksekusi untuknya. Isi file itu hanya sebuah gema. Setelah itu saya bisa menjalankan lagi wizard.

Di sini konten uninstall.sh di Fedora 30 saya (Tamu)

#!/bin/sh
# Auto-generated uninstallation file

PATH=$PATH:/bin:/sbin:/usr/sbin
LOGFILE="/var/log/vboxadd-uninstall.log"

# Read routines.sh
if ! test -r "/opt/VBoxGuestAdditions-6.0.8/routines.sh"; then
    echo 1>&2 "Required file routines.sh not found.  Aborting..."
    return 1
fi
. "/opt/VBoxGuestAdditions-6.0.8/routines.sh"

# We need to be run as root
check_root

create_log "$LOGFILE"

echo 1>&2 "Removing installed version 6.0.8 of VirtualBox Guest Additions..."

NO_CLEANUP=""
if test "$1" = "no_cleanup"; then
    shift
    NO_CLEANUP="no_cleanup"
fi

test -r "/var/lib/VBoxGuestAdditions/filelist" || abort "Required file filelist not found.  Aborting..."

# Stop and clean up all services
if test -r "/opt/VBoxGuestAdditions-6.0.8"/init/vboxadd-service; then
    stop_init_script vboxadd-service 2>> "$LOGFILE"
    delrunlevel vboxadd-service 2>> "$LOGFILE"
    remove_init_script vboxadd-service 2>> "$LOGFILE"
fi
if test -r "/opt/VBoxGuestAdditions-6.0.8"/init/vboxadd; then
    stop_init_script vboxadd 2>> "$LOGFILE"
    test -n "$NO_CLEANUP" || "/opt/VBoxGuestAdditions-6.0.8"/init/vboxadd cleanup 2>> "$LOGFILE"
    delrunlevel vboxadd 2>> "$LOGFILE"
    remove_init_script vboxadd 2>> "$LOGFILE"
fi
finish_init_script_install

# Load all modules
# Important: This needs to be done before loading the configuration
#            value below to not override values which are set to a default
#            value in the modules itself.
for CUR_MODULE in /opt/VBoxGuestAdditions-6.0.8/installer/module-autologon
    do
        . "$CUR_MODULE"
    done

# Load configuration values
test -r "/var/lib/VBoxGuestAdditions/config" && . "/var/lib/VBoxGuestAdditions/config"

# Call uninstallation initialization of all modules
for CUR_MODULE in ""
    do
        if test -z "$CUR_MODULE"; then
            continue
        fi
        mod_${CUR_MODULE}_pre_uninstall
        if [ 0 -ne 0 ]; then
            echo 1>&2 "Module \"$CUR_MODULE\" failed to initialize uninstallation"
            # Continue initialization.
        fi
    done

# Call uninstallation of all modules
for CUR_MODULE in ""
    do
        if test -z "$CUR_MODULE"; then
            continue
        fi
        mod_${CUR_MODULE}_uninstall
        if [ 0 -ne 0 ]; then
            echo 1>&2 "Module \"$CUR_MODULE\" failed to uninstall"
            # Continue uninstallation.
        fi
    done

# And remove all files and empty installation directories
# Remove any non-directory entries
cat "/var/lib/VBoxGuestAdditions/filelist" | xargs rm 2>/dev/null
# Remove any empty (of files) directories in the file list
cat "/var/lib/VBoxGuestAdditions/filelist" |
    while read file; do
        case "$file" in
            */)
            test -d "$file" &&
                find "$file" -depth -type d -exec rmdir '{}' ';' 2>/dev/null
            ;;
        esac
    done

# Remove configuration files
rm "/var/lib/VBoxGuestAdditions/filelist" 2>/dev/null
rm "/var/lib/VBoxGuestAdditions/config" 2>/dev/null
rmdir "/var/lib/VBoxGuestAdditions" 2>/dev/null
exit 0

Bisakah Anda menempelkan konten aktual dari uninstall.sh untuk referensi di masa mendatang? Mungkin saya akan mengalami masalah lagi dan akan senang memiliki solusi copy / paste yang mudah :)
Worp
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.