Skip to playerSkip to main content
  • 3 months ago
Kali Linux is a Linux Based Operating System. Recently, I dual booted my laptop with Kali Linux and Windows. But when I tried to update Kali Linux. It gave me "Broken Packages" error. And it won't update the packages. But I found the Solution. ENJOY!

~~~

FOR DONATIONS
ONE TIME [ https://www.buymeacoffee.com/MAYANSAJID ]
CONTINOUSLY [ https://www.patreon.com/MAYANSAJID ]

~~~

MY MAIN CHANNEL

http://www.youtube.com/@mayansajid

MY GAMING CHANNEL

https://www.youtube.com/@LITTLEFORCE

~~~

Be My Friend :)

https://www.facebook.com/mayansajidxLITTLEFORCE
https://www.instagram.com/mayansajid/
https://twitter.com/mayansajid/

Category

🤖
Tech
Transcript
00:00Alright, what's up? I'm Ayan and today I will show you how to update your Kali Linux to the latest
00:05available version
00:05updating all the packages and the fully upgrade. First of all we need to open up the terminal
00:12so all we need to do is to type in sudo su to gain super user access also known as
00:21root access
00:22so we're gonna type in my Kali password or you have to type in yours not mine
00:27okay now here we go now this terminal has been opened up as root
00:31now we need to type in apt-get update
00:35this is a video on how to fix all those update errors
00:39whenever we need to update we type in apt-get update
00:44but sometimes usually now these days this does not do anything
00:48it only read packages list and it says done but it does not update at all
00:53so let's try the other one apt-get upgrade
00:57so we're gonna do this
00:59now here is we have an error it says broken packages
01:04so to fix this error we will be clearing this whole command
01:11and first of all we have to make sure what kind of source we have
01:16type in the cat slash atc slash apt slash osis dot list
01:21here we need to make sure that this line starting with depth is
01:28same as shown in this video
01:30if it is not same you might have to consider
01:34downloading the latest ISO and flashing and reinstalling your Kali Linux
01:40or you can also update it again
01:42so for updating we will be changing the command to apt update
01:49we will not be using the dash get section
01:52we will only be using apt update
01:55because this is the new version of Kali Linux and it works like this
01:59so it says we have 872 packages can be upgraded
02:04so we are gonna type in apt full-upgrade
02:12and now this will show you all the everything
02:15every information about the upgrade
02:17so we are simply gonna ignore it and type in y
02:20and hit enter
02:23let me show you because this is not showing really clearly
02:26because of I have a screen dot or something the black spot on my screen
02:34so now we are gonna hit enter
02:38and this will start connecting to the internet and downloading all of these packages
02:42this will take about 734 MB's
02:46so it will take some time depending on my internet speed
02:50now as you can see it has started and is already getting packages
02:56from the Kali's official website
02:59and the developers
03:02now all we have to do is wait for it to download all those packages
03:06and then we can update it peacefully
03:09this is going to take some time so I am thinking I should skip it
03:13and let's get on to the next step
03:21ok now the downloading is about to complete
03:23because I did not interrupt my internet connection
03:26because that was really a critical issue if you disrupt your internet connection
03:31but you can also do the command again and it will resume the download
03:36I am just gonna fit this terminal so that black spot does not affect our site
03:45damn I got issues
03:48ok now this is downloading a big file
03:51ok here we have the speed and the time remaining
03:56we only got 10 seconds till it fully upgrades
03:59I think this is the last package
04:02yep it seems like it
04:03so all the packages are now downloaded
04:07if we want to set up console you can set it up
04:11for now I will be cancelling it
04:14just to show you that one error occurs if you do not set up the console
04:19so I have cancelled it
04:20now it started to install everything
04:23this will also take some time because
04:26why not
04:27the extraction process is also lengthy
04:30but don't worry guys we will keep an eye on it
04:33and also I am not gonna let you bore
04:35let you get bored so I am gonna just skip it
04:39and let's get straight to the end of the progress
04:43if anything comes up I will let you know
04:49ok now I have skipped most of the time
04:52and I think this is it
04:55we have only 99%
05:00yep this may take some time
05:02at 99% it usually stops
05:04and this takes a little bit of time
05:07so I am not gonna wait for it
05:09I am only going to skip it up
05:13and I don't mean like skipping up the process
05:16I am only going to skip the video
05:19just to keep this video short
05:22ok now
05:23everything is done
05:24but we got a small console setup
05:27sub process error code 1
05:29so we are gonna clear the terminal
05:31and now we are gonna type in
05:33apt update
05:35that error happened because I skipped the console installation
05:38so I will show you how to do that
05:40if you get this issue
05:41you can fix it just by typing apt update
05:45now it shows all packages are up to date
05:47which means our update worked
05:49now we are gonna type in apt upgrade
05:54upgrade
05:54and
05:56you can see here it says
05:58one not fully installed or removed
06:00so we are gonna type in y
06:01and
06:02hit enter
06:03here we can see we have this console
06:06open up
06:07now if I cancel it
06:09it gives me a sub process error
06:11with return code 1
06:14you can see it right there
06:16so we are gonna type in apt upgrade again
06:19and now I will be
06:22typing y to continue
06:25and now you need to select the language
06:27that you want your console to be set up
06:30I just happened to choose the last option
06:32because I don't see any other language here
06:36that suits my needs
06:37so
06:38everything is done
06:39now we need to check
06:41double check if the update is processed
06:43so we are gonna type in apt update
06:45yep
06:46all packages are up to date
06:47good
06:48now apt update
06:49we do not have to do anything else
06:51but we can also remove automatically
06:55packages that were automatically installed
06:57but we do not need them anymore
06:58so we are gonna type in this
07:00command that shows
07:01sudo apt auto remove
07:06yep this command right here
07:09this will remove
07:10all those packages that
07:12we do not require anymore
07:14just the useless ones
07:17so
07:17we get our system clean
07:21now it is removing all the packages
07:23and this
07:23this process is really smooth
07:25and I love it
07:27okay
07:28and let's clear the terminal again
07:29let's make sure everything is up to date
07:31so we are gonna type in apt update
07:34you can press the up key to
07:39use the previous commands that you used
07:41because it automatically saves those commands for you
07:44so you do not have to type it all again
07:46let's type in apt upgrade
07:48and everything is up to date
07:50anyway that's been it
07:51thanks for watching
07:51I will catch you in the next one
07:52take care
07:53goodbye
07:53bye
Comments

Recommended