WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.300 --> 00:00:06.000
Hello, everyone.

1
00:00:06.800 --> 00:00:08.100
And welcome to this lesson.

2
00:00:09.100 --> 00:00:12.900
In this lesson, we are going to understand a very important concept

3
00:00:12.900 --> 00:00:16.300
 about Network repositories

4
00:00:15.300 --> 00:00:18.400
 in Kali Linux. Now, what

5
00:00:18.400 --> 00:00:19.400
 are repositories?

6
00:00:20.100 --> 00:00:23.200
So it's basically a place from where you can

7
00:00:23.200 --> 00:00:27.100
 fetch download and install all the

8
00:00:26.100 --> 00:00:29.900
 tools or softwares that you want in

9
00:00:29.900 --> 00:00:30.800
 your Linux machine.

10
00:00:32.100 --> 00:00:35.300
Kali by default has its own repo.

11
00:00:35.800 --> 00:00:38.700
That you can update and fetch tools

12
00:00:38.700 --> 00:00:40.600
 or any programs that you want.

13
00:00:41.400 --> 00:00:44.500
But sometimes there are some tools

14
00:00:44.500 --> 00:00:47.900
 or other programs which are not in

15
00:00:47.900 --> 00:00:49.400
 the official Repository.

16
00:00:50.800 --> 00:00:54.400
So to do that you have to manually add

17
00:00:54.400 --> 00:00:57.500
 new repositories in your operating system.

18
00:00:59.300 --> 00:01:02.600
Once you add these new repo path, it allows you

19
00:01:02.600 --> 00:01:05.600
 to fetch download and install those

20
00:01:05.600 --> 00:01:07.600
 new tools or programs.

21
00:01:08.700 --> 00:01:11.600
So in this lesson, we are going to walk through that

22
00:01:11.600 --> 00:01:15.000
 what are sources.list repositories?

23
00:01:15.900 --> 00:01:18.800
How you can come across a error when

24
00:01:18.800 --> 00:01:21.400
 you want to install a specific software, which is

25
00:01:21.400 --> 00:01:23.100
 not in the official repo.

26
00:01:23.800 --> 00:01:26.000
How to fix it by adding a new

27
00:01:26.700 --> 00:01:29.600
 path in the sources start list and update the

28
00:01:29.600 --> 00:01:32.700
 repository of our Kali Linux machine and then

29
00:01:32.700 --> 00:01:35.200
 successfully install that software that you

30
00:01:35.200 --> 00:01:35.400
 want.

31
00:01:37.400 --> 00:01:41.200
So the first thing that we are going to see is we are going to read these

32
00:01:40.200 --> 00:01:43.500
 sources start list file, which is

33
00:01:43.500 --> 00:01:45.500
 inside Etc apt.

34
00:01:46.400 --> 00:01:49.700
When you go over here by default in

35
00:01:49.700 --> 00:01:52.600
 the Kali Linux default installation, this is

36
00:01:52.600 --> 00:01:54.800
 the official repo that you will see.

37
00:01:55.800 --> 00:01:58.200
Now when you navigate to the next

38
00:01:58.200 --> 00:02:02.300
 directory, which is sources.list.d you

39
00:02:01.300 --> 00:02:03.100
 can see over here.

40
00:02:04.200 --> 00:02:08.800
There are three list files which are being added explicitly which

41
00:02:08.800 --> 00:02:12.000
 allows you to install Google Chrome proton VPN

42
00:02:11.800 --> 00:02:14.400
 Sublime Text dot list Etc.

43
00:02:15.300 --> 00:02:17.900
Now let us try to read one of the list file.

44
00:02:18.600 --> 00:02:21.500
So let's say we are reading Google Chrome dot list

45
00:02:21.500 --> 00:02:24.500
 here. You can see this file is

46
00:02:24.500 --> 00:02:28.000
 automatically configured which is written in comment. You

47
00:02:27.200 --> 00:02:30.600
 may comment out this entry but on

48
00:02:30.600 --> 00:02:33.200
 any other modifications may be lost here you can

49
00:02:33.200 --> 00:02:37.000
 see the architecture is AMD 64

50
00:02:38.300 --> 00:02:41.700
The version of the program that is going to be downloaded is

51
00:02:41.700 --> 00:02:44.600
 for Debian. It is going to be downloaded from this

52
00:02:44.600 --> 00:02:48.000
 specific URL, which is DL

53
00:02:47.200 --> 00:02:50.300
 which stands for download dot google.com

54
00:02:50.300 --> 00:02:53.700
 Linux Chrome for Debian the stable

55
00:02:53.700 --> 00:02:54.300
 main version.

56
00:02:55.700 --> 00:02:57.900
I hope you guys understood this now.

57
00:02:58.800 --> 00:03:01.200
Let us see the next one. This one is for

58
00:03:01.200 --> 00:03:03.900
 proton VPN stable.list.

59
00:03:04.700 --> 00:03:07.500
It says that this is a

60
00:03:07.500 --> 00:03:11.200
 Debian download. This is the specific URL

61
00:03:10.200 --> 00:03:13.800
 which has been signed by a keyring

62
00:03:13.800 --> 00:03:16.600
 which is a valid certificate which

63
00:03:16.600 --> 00:03:20.400
 allows to download files officially from

64
00:03:19.400 --> 00:03:21.400
 the server.

65
00:03:22.700 --> 00:03:23.900
Let us see the next one.

66
00:03:26.800 --> 00:03:29.300
Let's see. What's next. So let's say

67
00:03:29.300 --> 00:03:33.300
 I want to install this program, which is signal now

68
00:03:32.300 --> 00:03:35.500
 signal like any other application

69
00:03:35.500 --> 00:03:38.600
 like telegram or Whatsapp allows you

70
00:03:38.600 --> 00:03:40.000
 to do communication.

71
00:03:40.800 --> 00:03:44.100
This specific software is not

72
00:03:43.100 --> 00:03:46.800
 in the official repository, which means

73
00:03:46.800 --> 00:03:49.300
 you cannot install it directly by

74
00:03:49.300 --> 00:03:53.200
 typing the command apt get installed signal.

75
00:03:54.200 --> 00:03:57.200
So once we go on this website here, we see

76
00:03:57.200 --> 00:04:00.700
 the Linux Debian base install instructions, which

77
00:04:00.700 --> 00:04:03.100
 we are going to follow in which

78
00:04:03.100 --> 00:04:06.100
 we primarily are going

79
00:04:06.100 --> 00:04:10.000
 to give the repository path to our Linux

80
00:04:09.100 --> 00:04:12.900
 machine and then we are going to fetch the

81
00:04:12.900 --> 00:04:14.700
 tool and install it successfully.

82
00:04:15.600 --> 00:04:18.400
So here you can see there are three steps step one

83
00:04:18.400 --> 00:04:21.800
 to install our official public software signing

84
00:04:21.800 --> 00:04:25.100
 key, which will validate that the

85
00:04:24.100 --> 00:04:27.400
 request that is going is valid and you will

86
00:04:27.400 --> 00:04:30.400
 be able to download the software next is adding the

87
00:04:30.400 --> 00:04:33.400
 repository to your list of repositories and finally

88
00:04:33.400 --> 00:04:35.500
 the command to install this tool.

89
00:04:36.100 --> 00:04:39.700
Let's see what happens if we directly run the command without

90
00:04:39.700 --> 00:04:42.300
 giving the path to the repo in

91
00:04:42.300 --> 00:04:43.500
 our sources.list.

92
00:04:44.200 --> 00:04:47.600
You can see our machine will give a error like this, which says

93
00:04:47.600 --> 00:04:49.300
 unable to locate package.

94
00:04:50.200 --> 00:04:53.600
this is because it is unable to identify the signal

95
00:04:53.600 --> 00:04:57.200
 desktop package into the official default

96
00:04:56.200 --> 00:04:59.200
 repository, which is it is trying

97
00:04:59.200 --> 00:04:59.800
 to fetch from

98
00:05:02.800 --> 00:05:05.300
Okay, so we are going to follow the steps one

99
00:05:05.300 --> 00:05:05.800
 by one.

100
00:05:06.400 --> 00:05:09.800
The first step is to give the official

101
00:05:09.800 --> 00:05:12.700
 signing key in our system. The next

102
00:05:12.700 --> 00:05:16.600
 step is going to download the repository

103
00:05:15.600 --> 00:05:18.600
 to our social start

104
00:05:18.600 --> 00:05:21.300
 list. So I'm going to copy paste the command over

105
00:05:21.300 --> 00:05:24.600
 here here you can see this is exactly the

106
00:05:24.600 --> 00:05:28.100
 same thing that we saw in Chrome and

107
00:05:27.100 --> 00:05:30.900
 proton VPN, which says the

108
00:05:30.900 --> 00:05:34.100
 architecture is AMD 64 for Debian

109
00:05:33.100 --> 00:05:36.500
 assigning key and from where

110
00:05:36.500 --> 00:05:39.600
 the program or the tool needs to

111
00:05:39.600 --> 00:05:40.400
 be downloaded from

112
00:05:41.900 --> 00:05:44.100
Let us verify this by going in the same

113
00:05:44.100 --> 00:05:47.800
 directory and you can see over here signal dot list

114
00:05:47.800 --> 00:05:51.000
 one more list has been created successfully and

115
00:05:50.300 --> 00:05:53.700
 when we try to read this list, it is exactly as

116
00:05:53.700 --> 00:05:57.000
 same as for Google Chrome and proton VPN.

117
00:05:57.700 --> 00:06:00.600
Great. So now we have successfully added

118
00:06:00.600 --> 00:06:01.000
 the list.

119
00:06:01.900 --> 00:06:04.800
In our Kali Linux now we

120
00:06:04.800 --> 00:06:08.100
 need to update our repositories. So

121
00:06:07.100 --> 00:06:10.600
 for that we have to run

122
00:06:10.600 --> 00:06:13.200
 the command, which is sudo apt update.

123
00:06:14.300 --> 00:06:17.800
When we run this command, it allows our Linux

124
00:06:17.800 --> 00:06:20.700
 machine to update the repo path

125
00:06:20.700 --> 00:06:24.000
 and fetch the tools from new given

126
00:06:23.000 --> 00:06:25.300
 source.list.

127
00:06:26.200 --> 00:06:29.200
As you can see get one request says that

128
00:06:29.200 --> 00:06:32.500
 it has successfully updated its report path to

129
00:06:32.500 --> 00:06:36.500
 fetch programs from updates dot signals.org.

130
00:06:35.500 --> 00:06:39.700
 Next. We saw dl.google.com. The

131
00:06:39.700 --> 00:06:43.100
 third one is update start signal.org. Again.

132
00:06:42.100 --> 00:06:45.500
 These are all the custom

133
00:06:45.500 --> 00:06:48.100
 path that we have added that we want to

134
00:06:48.100 --> 00:06:49.500
 fetch the programs from

135
00:06:50.500 --> 00:06:53.500
the next hit as you can see over here.

136
00:06:54.200 --> 00:06:57.600
Are basically the default repo paths from where

137
00:06:57.600 --> 00:07:00.200
 it is trying to fetch if there has

138
00:07:00.200 --> 00:07:03.200
 been new programs that has been added or any new

139
00:07:03.200 --> 00:07:04.700
 packages that have been updated.

140
00:07:05.700 --> 00:07:09.400
It will take few seconds to update it official

141
00:07:08.400 --> 00:07:10.500
 Repository.

142
00:07:11.200 --> 00:07:13.100
And we just have to wait in for here.

143
00:07:14.300 --> 00:07:17.500
Once this step is completed successfully we would

144
00:07:17.500 --> 00:07:20.300
 now be able to run the command which is

145
00:07:20.300 --> 00:07:23.800
 to install the signal package as we

146
00:07:23.800 --> 00:07:26.600
 saw before when we ran that

147
00:07:26.600 --> 00:07:29.300
 specific command it gave us an error.

148
00:07:30.200 --> 00:07:33.300
But let us see this time what will happen will it again

149
00:07:33.300 --> 00:07:36.400
 given error, or will it allow us to install?

150
00:07:37.400 --> 00:07:39.100
So it's almost complete.

151
00:07:41.100 --> 00:07:44.400
So we are going to paste the command this time and hit enter.

152
00:07:45.100 --> 00:07:49.100
And you can see it is successfully installing

153
00:07:48.100 --> 00:07:51.700
 the package that we want here. We

154
00:07:51.700 --> 00:07:54.700
 can see previously we got the error

155
00:07:54.700 --> 00:07:58.600
 while installing the signal desktop package.

156
00:07:59.100 --> 00:08:03.300
We successfully ran the first command to add the

157
00:08:02.300 --> 00:08:05.900
 list file in our system and

158
00:08:05.900 --> 00:08:08.600
 the key ring as well after that.

159
00:08:08.600 --> 00:08:11.400
 We did a APT update and then we were

160
00:08:11.400 --> 00:08:14.600
 successfully able to install the package in our

161
00:08:14.600 --> 00:08:14.700
 system.

162
00:08:15.500 --> 00:08:17.900
I hope you guys understood this. Thank you.
