1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing Packages

Discussion in 'Beginners Section' started by N14ll, Mar 19, 2013.

  1. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Hi all,

    I am trying to install Chromium but when i use apt-get it cant find the package. I also cant find the package in Add+Remove in System Settings. My /etc/apt/sources.list reads as follows

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

    So whay am i doing wrong..??

    Also is there anywhere to customise the top and bottom taskbars. Is it possible to even delete the default IceWeasel and Computer icons. Thanks..


    EDIT: When i run apt-get update i get this:

    Err http://security.kali.org kali/updates InRelease

    Err http://security.kali.org kali/updates Release.gpg
    Could not resolve 'security.kali.org'
    Err http://http.kali.org kali InRelease

    Err http://http.kali.org kali Release.gpg
    Could not resolve 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/kali/dists/kali/InRelease

    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/InRelease

    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release.gpg Could not resolve 'security.kali.org'

    W: Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg Could not resolve 'http.kali.org'

    W: Some index files failed to download. They have been ignored, or old ones used instead.
     
    #1
    nitin j mutkawoa likes this.
  2. stiw47

    stiw47 Member

    Joined:
    Mar 12, 2013
    Messages:
    36
    Likes Received:
    9
    I'm just a noob and don't understanding your errors from "apt-get update" so good, but I installed chromium in live mode on v1.0 amd64, on way below (maybe will help you):

    Code:
    apt-get install chromium-browser
    apt-get install hexedit
    hexedit /usr/lib/chromium/chromium
    Now, hit the "TAB", than hit the "CTRL+S", than type "geteuid" and hit the "ENTER".
    Now type "getppid" instead of "geteuid"
    Hit "CTRL+X" to save the changes
    Whola, run chromium from aplications menu.

    But, if you have no lucky with method abowe, I think that is something wrong with your repositories (but I'm not shure - noob :) ).
     
    #2
    nitin j mutkawoa likes this.
  3. wlan0

    wlan0 Staff Member

    Joined:
    Mar 18, 2013
    Messages:
    41
    Likes Received:
    11
    Try install google.deb ( download from google ) , dpkg -i <your package>.deb
    leafpad /usr/bin/google-chrome
    add: --user-data-dir to line 42 ( exec -a "$0" "$HERE/chrome" "$@"--user-data-dir)
    Enjoy!
     
    #3
  4. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Thanks for that all,anyone any idea why my repos seem broken..???? apt-get install chromium-browser justs throws up unable to find packages.....
     
    #4
  5. wlan0

    wlan0 Staff Member

    Joined:
    Mar 18, 2013
    Messages:
    41
    Likes Received:
    11
    locate chromium-browser , type in terminal.............. check your source software in software setting ( System tool..Preferences...software setting) ..apt-get update
     
    #5
    nitin j mutkawoa likes this.
  6. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    locate chromium-browser returns nothing apt-get update just gives the message posted above. Source software shows what is in my sources.list file.
     
    #6
  7. templar13

    templar13 New Member

    Joined:
    Mar 19, 2013
    Messages:
    1
    Likes Received:
    1
    It means you can't reach repos, usually this comes when i'm not connected to internet!
    If you are browsing/surfing from kali and still can't reach repos, try to copy repos links to browser
    and navigate to them, and see what it tells!
     
    #7
    nitin j mutkawoa likes this.
  8. nitin j mutkawoa

    nitin j mutkawoa New Member

    Joined:
    Mar 20, 2013
    Messages:
    10
    Likes Received:
    4
    hello im going to help you with this issue.. dont worry just relax

    1. open a terminal
    2. type
    Code:
    sudo vi /etc/apt/sources.list
    3. then you will be find inside sources.list as a super user using vim editor to edit the repository - to use vim check the following link http://www.tuxfiles.org/linuxhelp/vimcheat.html

    4. Now edit the repository by adding the following codes :
    #deb http://http.kali.org/ /kali main contrib non-free
    #deb http://http.kali.org/ /wheezy main contrib non-free

    there are new repositories on this link

    https://www.facebook.com/notes/kali-linux/stable-kali-apt-repositories/541033082586710

    5. once you successfully edit it, enter go back again in the file to confirm if its edited you may also use nano /etc/apt/sources.list

    6. ok now you confirm its well edited. go to Applications - system tools - preferences - software settings. Then under the software sources tab tick the boxes.

    7. now you may start doing your sudo apt-get update command

    note: always check new repository and add it

    Welcome to kali.

    regards nitin j mutkawoa
     
    #8
    wlan0 likes this.
  9. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Hi Nitin,

    Thanks for your help but no joy im afraid. My sources.list file now reads

    Code:
    deb http://http.kali.org/kali/ kali main contrib non-free
    deb-src http://http.kali.org/kali/ kali main contrib non-free
    deb http://security.kali.org/kali-security/ kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security/ kali/updates main contrib non-free
    deb http://http.kali.org//kali/ main contrib non-free
    deb http://http.kali.org//wheezy/ main contrib non-free
    
    When i apt get update i get the errors in my previous post. when i check for updates software settings it just says all software is up to date and doesnt throw up any errors. I can navigate to the links via a webbrowser..... Any help greatly appreciated.
     
    #9
    nitin j mutkawoa and aka88 like this.
  10. nitin j mutkawoa

    nitin j mutkawoa New Member

    Joined:
    Mar 20, 2013
    Messages:
    10
    Likes Received:
    4
    hello.. Follow these steps:

    1. Add all repository that is :

    Code:
    deb http://http.kali.org/ /kali main contrib non-free
    deb http://http.kali.org/ /wheezy main contrib non-free
    deb http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali main contrib non-free
    deb http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    
    2. Then do a
    Code:
     sudo apt-get upgrade 
    3. then do a
    Code:
     sudo apt-get update 
    - - you can use && if u want!!

    4. then do
    Code:
     sudo apt-get install chromium 
    It should be working superfine..

    regards
    nitin j mutkawoa
     
    #10
    N14ll likes this.
  11. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Still no luck i'm afraid. My sources.list file is as you have advised. When i run apt-get upgrade i get
    Code:
    Reading package lists... Done
    Building dependency tree     
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    When i run apt-get update i get
    Code:
    Err http://security.kali.org kali/updates InRelease
     
    Err http://security.kali.org kali/updates Release.gpg
      Could not resolve 'security.kali.org'
    Err http://http.kali.org /kali InRelease
     
    Err http://http.kali.org /wheezy InRelease
     
    Err http://http.kali.org kali-dev InRelease
     
    Err http://http.kali.org kali InRelease
     
    Err http://http.kali.org /kali Release.gpg
      Could not resolve 'http.kali.org'
    Err http://http.kali.org /wheezy Release.gpg
      Could not resolve 'http.kali.org'
    Err http://http.kali.org kali-dev Release.gpg
      Could not resolve 'http.kali.org'
    Err http://http.kali.org kali Release.gpg
      Could not resolve 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/dists//kali/InRelease 
     
    W: Failed to fetch http://http.kali.org/dists//wheezy/InRelease 
     
    W: Failed to fetch http://http.kali.org/kali/dists/kali-dev/InRelease 
     
    W: Failed to fetch http://http.kali.org/kali/dists/kali/InRelease 
     
    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/InRelease 
     
    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release.gpg  Could not resolve 'security.kali.org'
     
    W: Failed to fetch http://http.kali.org/dists//kali/Release.gpg  Could not resolve 'http.kali.org'
     
    W: Failed to fetch http://http.kali.org/dists//wheezy/Release.gpg  Could not resolve 'http.kali.org'
     
    W: Failed to fetch http://http.kali.org/kali/dists/kali-dev/Release.gpg  Could not resolve 'http.kali.org'
     
    W: Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg  Could not resolve 'http.kali.org'
     
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    
    When i run apt-get install chromium-browser i get
    Code:
    Reading package lists... Done
    Building dependency tree     
    Reading state information... Done
    E: Unable to locate package chromium-browser
    Totally have no idea,a new install is looming. Am i editing the right file its in etc/apt/sources.list. Its not an internet access problem


    Thanks for your help
     
    #11
    nitin j mutkawoa likes this.
  12. nitin j mutkawoa

    nitin j mutkawoa New Member

    Joined:
    Mar 20, 2013
    Messages:
    10
    Likes Received:
    4
    Hello..

    Do the following commands first then let me know if still not updating

    1.
    Code:
     sudo apt-get clean 
    2.
    Code:
     sudo apt-get update 

    nitin
     
    #12
  13. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Tried the above problem still present,same error messages as above..
     
    #13
  14. N14ll

    N14ll New Member

    Joined:
    Mar 19, 2013
    Messages:
    9
    Likes Received:
    5
    Ok we have success,done a bit of googling and found some info on editing the etc/resolv.conf file. Changed the nameserver from my routers default address to googles 8.8.8.8,ran commands and hey presto we have lift off.. Thanks for everything..
     
    #14
    nitin j mutkawoa likes this.
  15. stiw47

    stiw47 Member

    Joined:
    Mar 12, 2013
    Messages:
    36
    Likes Received:
    9
    @nitin (and others): I was add repos just like you said. I copy-paste them to /etc/apt/sources.list and choose 'save'. After that, mine 'sources.list', looks like:

    [​IMG]


    Now, when I run 'apt-get update', I have a bunch of faileds in Terminal log, it's look like:

    [​IMG]

    Here is mine full Terminal log, after 'apt-get update':

    http://dl.dropbox.com/u/52267009/'apt-get update' log

    I notice, that I was try to remove new repos from /etc/apt/sources.list, but ewery is same even after that.

    Kali seems to working good, I can download and install packages, but theese faileds are litle anoying.

    Is anybody know how to fix that?

    Thanks advance. Noob
     
    #15
    nitin j mutkawoa likes this.
  16. critterah

    critterah New Member

    Joined:
    Mar 24, 2013
    Messages:
    3
    Likes Received:
    1
    Uhhh, it seems like a BAD idea to be adding repos to the /etc/apt/sources.list file that aren't from the official repo.... If you are getting the errors initially, it usually means one of two things... you don't have an internet connection, or your DNS isn't resolving the URL. You can try changing your DNS to googles DNS or try pinging the repo URL and adding that IP to your /etc/hosts file so it resolves to that IP.... I highly recommend against changing all your repos over to something that's not officially hosted by them. I know for a fact their site is up as it works fine for me. If you aren't resolving the URL, it's not because it isn't up, and someone trying to point you somewhere else is fishy to me....
     
    #16
  17. nitin j mutkawoa

    nitin j mutkawoa New Member

    Joined:
    Mar 20, 2013
    Messages:
    10
    Likes Received:
    4
    Hello

    1. Well, of course you will received these failed updates, because there is no CDrom in your drive where the new updates are stored.

    2. When u say "deb" in your repository , its like you are telling kali : "Go and look for the debian package in the source list from for ex: cd rom, or a http link, like http://kali..etc, ".. I hope you understand what the repository is actually. Its like you tell the computer where to look for the source code list.

    3. Now when u execute the deb through update command on your terminal you have error messages. Its totally natural because you dont have a cd rom for updates but instead your updates are find on the net.

    4. So the first thing you have to do is to go to Applications - system tools - preferences - software settings. Then under the software sources tab UNTICK ONLY the deb: CDrom because u r not using it.. and tick all the others because the others u will be using.

    5. Now that you are done. open a terminal and do a (i) sudo apt-get clean (ii) sudo apt-get update (iii) sudo apt-get upgrade

    I hope this help you to understand how deb work !!...

    regards
    nitin j mutkawoa
     
    #17
    ltdanno likes this.
  18. silvershady

    silvershady New Member

    Joined:
    Mar 26, 2013
    Messages:
    1
    Likes Received:
    1
    I made an account just to thank you for this. Ive been going crazy trying to figure out why my package installer wasn't working right, did this, and it worked like a charm. Thanks again!
     
    #18
    nitin j mutkawoa likes this.
  19. Witranx

    Witranx Staff Member

    Joined:
    Mar 25, 2013
    Messages:
    27
    Likes Received:
    21
    N14ll

    (1) Open Terminal, & Type;

    Code:
    gedit /etc/apt/sources.list
    Copy & Paste the following;

    Code:
    # deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130307-13:03]/ kali contrib main non-free
     
    #deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130307-13:03]/ 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
    
    (2) Then save.

    (3) Then open Terminal & type;

    Code:
    apt-get update
     
    apt-get install chromium-browser
     
    
    NOTE: DO NOT run Chromium as root, or any application as root - you will open your system to numerous exploits.

    ---

    WiTranx
     
    #19
  20. loghonox

    loghonox New Member

    Joined:
    Apr 14, 2013
    Messages:
    3
    Likes Received:
    0
    when a try apt-get update this come s up
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    any solution ?
     
    #20

Share This Page