In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Only record, do not like no spray, master please make a detour, thank you!
Repeated twists and turns for a day, the result is quite regrettable, did not install successfully. However, the understanding of kali has been deepened in the process.
However, did not give up, and finally the installation was successful!
Previously, I only knew the update source and let apt-get update and install the dependency package itself.
Now I know, in fact, Debian has a software repository, you can manually go to the software repository to search for dependent packages that need to be installed, then download and install using dpkg-I. Dependency packages (. Deb) in the Ubuntu software repository can also be used in Debian systems.
The commands apt-get-f install and apt--fix-broken install can automatically repair dependencies to some extent, but not everything.
In addition, each Debian version has its own code name, such as the Debian 9 code name stretch
Reference website:
Https://www.virtualbox.org/wiki/Linux_Downloads # virtualbox official download address
Https://www.debian.org/distrib/packages.zh-cn.html # Debian Software Repository
1. Pits encountered during installation
Pit 1
The following are the official installation instructions:
Debian-based Linux distributions
Add the following line to your / etc/apt/sources.list. According to your distribution, replace 'with' eoan', 'bionic',' xenial', 'buster',' stretch', or 'jessie' (older versions of VirtualBox supported different distributions):
Deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian contrib
The Oracle public key for apt-secure can be downloaded
Here for Debian 8 ("Jessie") / Ubuntu 16.04 ("Xenial") and laterhere for older distributions.
You can add these keys with
Sudo apt-key add oracle_vbox_2016.asc
Sudo apt-key add oracle_vbox.asc
Or combine downloading and registering:
Wget-Q https://www.virtualbox.org/download/oracle_vbox_2016.asc-O-| sudo apt-key add-
Wget-Q https://www.virtualbox.org/download/oracle_vbox.asc-O-| sudo apt-key add-
The key fingerprint for oracle_vbox_2016.asc is
B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key)
The key fingerprint for oracle_vbox.asc is
7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key)
(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)
To install VirtualBox, do
Sudo apt-get update
Sudo apt-get install virtualbox-6.1
Replace virtualbox-6.1 by virtualbox-6.0 or virtualbox-5.2 to install the latest VirtualBox 6.0 or 5.2 build.
What to do when experiencing The following signatures were invalid: BADSIG... When refreshing the packages from the repository?
Sudo-s-Hapt-get cleanrm / var/lib/apt/lists/*rm / var/lib/apt/lists/partial/*apt-get cleanapt-get update
1.1 install the official manual installation, indicating that the dependency is not satisfied
1.2 search the Debian software repository for dependency packages in the prompt and download
1.3 install the downloaded dependency package, in which there is a conflict of dependency package prompts, what should I do? I originally wanted to uninstall the conflicting dependency package, but if you look closely, there are many common software dependencies on the dependency package that cannot be uninstalled. Let's find another way.
Pit 2
2.1 after the installation is completed, start virtualbox with a serious error. The message is as follows:
''
Failed to create VirtualBoxClient COM object.
The application will be interrupted.
Summoned RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)
''
2.2 looked around on the Internet, some said that the file was locked, some said that there was not enough disk space, and so on. Tried it, but it didn't solve the problem. The following is a record of the attempt, which is of no use (please ignore this section directly).
''
Rm: unable to delete 'p3x words onenoteUniverse 63 localesUnix am.paktrees: read-only file system
Root@kali:/snap/p3x-onenote/63# mount
Root@kali:/snap/p3x-onenote/63# mount-o remount,rw / snap/p3x-onenote/63
''
2.3 back to the error message, is "called RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)" not registered?
During the previous installation, one step was to download and register key. Could there be a problem with this step?
Uninstall virtualbox, get key again, and register again.
Wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
Apt-key add oracle_vbox_2016.asc
Wget https://www.virtualbox.org/download/oracle_vbox.asc
Apt-key add oracle_vbox.asc
2.4 and then perform the installation, it is successful!
Full installation:
Method 1: download the installation package manually and install it
1. View the current kali linux kernel version
Root@kali:~# uname-r
You can see that the current system is kernel 5.4.0, which is based on Debian 10 (version code: buster)
two。 Officially download the corresponding version of the installation package
Https://www.virtualbox.org/wiki/Linux_Downloads
Https://download.virtualbox.org/virtualbox/6.1.4/virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
3. Set up update source
Back up the original / etc/apt/source.list: cp / etc/apt/source.list / etc/apt/source.list.bak
Then delete all the contents of / etc/apt/source.list, rewrite the following information, and save the closed document.
# VirtualBox Debian Stretch
Deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
Deb https://download.virtualbox.org/virtualbox/debian buster contrib
4. Download Oracle public key
Cd / tmp
Wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
Wget https://www.virtualbox.org/download/oracle_vbox.asc
5. Register for Oracle public key
Apt-key add oracle_vbox_2016.asc
Apt-key add oracle_vbox.asc
6. Install virtualbox
Apt-get update
Apt-get upgrade
Dpkg-I virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
7. Remember to restore the original contents of the source.list document
Method 2: apt installation
The first 5 steps are the same as method 1, and step 6 is as follows:
Apt-get update
Apt-get upgrade
Apt-get install virtualbox-6.1
If you are prompted that the dependency package is not satisfied, please search the Debian software warehouse. If you can't find it, you can try to find it in the Ubuntu software warehouse.
After downloading, dpkg-I manually installs the dependency package, followed by a virtualbox installation.
Start virtualbox and type virtualbox in the terminal, which is a success.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.