0% found this document useful (0 votes)
100 views4 pages

Repository SourceList

The document provides instructions for updating software repositories and package lists on a Kali Linux system. It describes opening and editing the /etc/apt/sources.list file to ensure it is configured for Kali rolling releases. It then lists commands like apt-get update, apt-get upgrade, and apt-get dist-upgrade to update and upgrade packages. It also provides tips for resolving common errors like a locked dpkg directory or invalid repository signatures.

Uploaded by

Suhas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views4 pages

Repository SourceList

The document provides instructions for updating software repositories and package lists on a Kali Linux system. It describes opening and editing the /etc/apt/sources.list file to ensure it is configured for Kali rolling releases. It then lists commands like apt-get update, apt-get upgrade, and apt-get dist-upgrade to update and upgrade packages. It also provides tips for resolving common errors like a locked dpkg directory or invalid repository signatures.

Uploaded by

Suhas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Computer > etc > apt > sources.

list
> Right click > Open w/ Other Applications
> View all Applications > Leafpad

# deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64


LIVE/INSTALL Binary 20171109-13:49]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64


LIVE/INSTALL Binary 20171109-13:49]/ kali-rolling contrib main non-free

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


# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Terminal
/etc/apt/sources.list
apt-get update
~~~~~~~~~~OR~~~~~~~~~~~
apt-get update && apt-get upgrade -y
~~~~~~~~~~OR~~~~~~~~~~~
apt-get clean && apt-get update -y
~~~~~~~~~~AND~~~~~~~~~~
apt-get upgrade -y && apt-get dist-upgrade -y

~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~

https://www.youtube.com/watch?v=dS4UuGerGOk

cat /etc/apt/sources.list
nano /etc/apt/sources.list
copy & paste from Kali sources.list Repositories

## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

with :

## Regular repositories
deb https://http.kali.org/kali kali-rolling main contrib non-free

Ctrl + O > Write Out > Enter


Ctrl + X > Exit
clear
apt-get update
apt-get upgrade
apt-get install -y dkms linux-headers-$(uname -r)
---------------------------------------
rm /var/lib/dpkg/lock
---------------------------------------
apt-get dist-upgrade
apt-get dist-upgrade -y
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

++++++++++++++++++++++++++++++++++++++

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily


unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process
using it?

sudo lsof /var/lib/dpkg/lock


kill /pid <pid no#>
ex: kill /pid 712

+++++++++++++++++++++++++++++++++++++++++

Err:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease


The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux
Repository <[email protected]>

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

You might also like