PDA

View Full Version : Troubleshooting - Repository Issues



g0tmi1k
2014-03-22, 12:35
Troubleshooting - Repository Issues
Always make sure your source.list file is correct (see below).



cat /etc/apt/sources.list (more information (http://docs.kali.org/general-use/kali-linux-sources-list-repositories))
Displays a lists of 'sources' from which packages can be installed from.
Note: Using any other repositories (including adding PPAs) isn't support. Using our repositories on another OS (e.g. Ubuntu, Mint, Debian etc) isn't support.

root@kali:~# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20140108-18:08]/ kali contrib main non-free

#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20140108-18:08]/ kali contrib main non-free

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

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free
root@kali:~#

Upon editing the file, make sure to run 'apt-get update' afterwards



Issue: E: Unable to locate package xyz
Solution: apt-get update; apt-cache search xyz
apt-get update: When a new package is added to the repository, you need update your local package list, so it is in sync with the remote repository.
apt-cache search: Another issue could be there isn't that package available in the repository. This could be because the package name is different (or a typo), or its not in repository. You can request tools by making a ticket in our bug tracker (https://bugs.kali.org/bug_report_page.php).

root@kali:~# apt-get install webhandler
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package webhandler
root@kali:~# apt-get update
Get:1 http://http.kali.org kali Release.gpg [836 B]
Get:2 http://security.kali.org kali/updates Release.gpg [836 B]
Get:3 http://http.kali.org kali Release [21.1 kB]
Get:4 http://security.kali.org kali/updates Release [11.0 kB]
Get:5 http://http.kali.org kali/main Sources [7,528 kB]
Ign http://security.kali.org kali/updates/contrib Translation-en_GB
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en_GB
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://http.kali.org kali/contrib Translation-en_GB
Ign http://security.kali.org kali/updates/non-free Translation-en_GB
Ign http://http.kali.org kali/contrib Translation-en
Ign http://http.kali.org kali/main Translation-en_GB
Ign http://security.kali.org kali/updates/non-free Translation-en
Ign http://http.kali.org kali/main Translation-en
Ign http://http.kali.org kali/non-free Translation-en_GB
Ign http://http.kali.org kali/non-free Translation-en
Get:6 http://security.kali.org kali/updates/main i386 Packages [196 kB]
Get:7 http://http.kali.org kali/non-free Sources [117 kB]
Hit http://security.kali.org kali/updates/contrib i386 Packages
Hit http://http.kali.org kali/contrib Sources
Hit http://security.kali.org kali/updates/non-free i386 Packages
Get:8 http://http.kali.org kali/main i386 Packages [8,460 kB]
Get:9 http://http.kali.org kali/non-free i386 Packages [120 kB]
Hit http://http.kali.org kali/contrib i386 Packages
Fetched 16.5 MB in 14s (1,105 kB/s)
Reading package lists... Done
root@kali:~# apt-cache search webhandler
webhandler - Bash simulator to control a server using PHP system functions
root@kali:~# apt-get install webhandler
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
webhandler
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 66.1 kB of archives.
After this operation, 310 kB of additional disk space will be used.
Get:1 http://http.kali.org/kali/ kali/main webhandler all 03192014-0kali1 [66.1 kB]
Fetched 66.1 kB in 0s (76.3 kB/s)
Selecting previously unselected package webhandler.
(Reading database ... 381961 files and directories currently installed.)
Unpacking webhandler (from .../webhandler_03192014-0kali1_all.deb) ...
Setting up webhandler (03192014-0kali1) ...
root@kali:~#



Issue: Downloading from the repository is (very) slow
Solution: Wait, manually select a mirror or make your own mirror.
Kali-Linux has multiple different mirrors around the globe, and it will automatically select the one which is closest to you based on your GeoIP. From time to time, certain mirrors may become slow for any number of reasons. You can either wait a few hours and see if the speed increases, else you can manually select a mirror.
Click on both 'mirrorlist' link below and find select a mirror that suits you. You will then need to edit your /etc/apt/sources.list file accordingly with the chosen values (don't forget to run 'apt-get update' afterwards).


http.kali.org (mirrorlist (http://http.kali.org/README.mirrorlist)) - the main package repository;
security.kali.org (mirrorlist (http://security.kali.org/README.mirrorlist)) - the security package repository;


Alternatively, you can setup your own local repository. For more information see this page, http://docs.kali.org/kali-support/kali-linux-mirrors.



Issue: Downloading the ISO/image files are (very) slow
Solution: Use a different mirror or download via torrent.

Official (x86/x64) Download: http://www.kali.org/downloads/
Custom Images (VMware/ARM) Download: http://www.offensive-security.com/kali-llnux-vmware-arm-image-download/

Kali-Linux has multiple different mirrors for the official images around the globe, and it will automatically select the one which is closest to you based on your GeoIP. From time to time, certain mirrors may become slow for any number of reasons. You can either wait a few hours and see if the speed increases, else you can manually select a mirror.
Click on the 'mirrorlist' link below and find select a mirror that suits you. You may need to explore the file path to locate your image & version.


cdimage.kali.org (mirrorlist (http://cdimage.kali.org/README.mirrorlist)) - the repository with ISO images.


Alternatively, see if there is a torrent available for your chosen format. All our torrents are seeded using various seedboxes as well as a large amount of Kali-Linux members are seeding. For more information about bit torrent, see here (http://www.bittorrent.com/help/guides/beginners-guide).