duliri123

duliri123

Install Kali Linux Graphical Interface on Debian VPS

First, you need to install the Kali Linux desktop environment and set up remote desktop services.

Here are the approximate steps:

Log in to your VPS and make sure the Debian system is installed and updated to the latest version. You can use the following commands to update the system:

sudo apt update
sudo apt upgrade

Error

root@r-fa4383:~# sudo apt update
-bash: sudo: command not found

Change the source
Aliyun source:



deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

Install sudo

apt-get install sudo

After the installation is complete, use the following command to add the user to the sudo group:

adduser <username> sudo

Command to test if sudo is working properly

apt-get install sudo

Still an error
Check which version of the kernel you are running and upgrade

uname -r

apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') --fix-missing

Then try installing Kali Linux again

sudo apt update
sudo apt install kali-desktop-xfce

Error (This package cannot be obtained from your software source)

Edit the /etc/apt/sources.list file to configure the software source. Specifically, you can add the following content to the file, which is the configuration of the official source of Kali Linux:

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib


deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://http.kali.org/kali kali-last-snapshot main non-free contrib
deb http://http.kali.org/kali kali-experimental main non-free contrib

Update

sudo apt update
sudo apt upgrade

Add Kali Linux source to Debian's /etc/apt/sources.list file

echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee -a /etc/apt/sources.list

Download and import the GPG key for Kali Linux

wget -q -O - https://archive.kali.org/archive-key.asc | sudo apt-key add -

Update the package list

sudo apt update

Install kali-desktop-xfce

sudo apt install kali-desktop-xfce

Error
This error is usually caused by problems with the installation or configuration of the libc6 library. You can try the following steps to resolve this issue:

Run the following commands to clear the apt cache

sudo apt-get clean
sudo apt-get autoclean

Run the following command to fix unfinished installations

sudo dpkg --configure -a

If step 2 still doesn't solve the problem, try reinstalling libc6:

sudo apt-get install --reinstall libc6

If the problem still persists, consider using the following command to force remove libc6 and then reinstall it

sudo dpkg -P --force-depends libc6
sudo apt-get install libc6

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.