You are on page 1of 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 <devel@kali.org>

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

You might also like