Results 1 to 6 of 6

Thread: Adding PPA repository in kali linux 2017.1

  1. #1
    Junior Member
    Join Date
    Sep 2016
    Posts
    12

    Adding PPA repository in kali linux 2017.1

    Hello to all,
    I am using Lenovo y50 with dual boot with win 10 and kali linux(64 bit).
    I am running kali linux latest edition 2017.1.
    Code:
    uname -a
    Linux KALI 4.9.0-kali4-amd64 #1 SMP Debian 4.9.30-2kali1 (2017-06-22) x86_64 GNU/Linux
    I was trying to install SYSTEMBACK after which i figured out to add ppa repository so i started working on it an did following:

    # apt-get install python3-software-properties apt-file
    # apt-file update
    # apt-file search add-apt-repository
    # cd /usr/sbin
    # vim add-apt-repository

    Code:
    #!/bin/bash
    if [ $# -eq 1 ]
    NM=`uname -a && date`
    NAME=`echo $NM | md5sum | cut -f1 -d" "`
    then
      ppa_name=`echo "$1" | cut -d":" -f2 -s`
      if [ -z "$ppa_name" ]
      then
        echo "PPA name not found"
        echo "Utility to add PPA repositories in your debian machine"
        echo "$0 ppa:user/ppa-name"
      else
        echo "$ppa_name"
        echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu trusty main" >> /etc/apt/sources.list
        apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
        key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
        apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
        rm -rf /tmp/${NAME}_apt_add_key.txt
      fi
    else
      echo "Utility to add PPA repositories in your debian machine"
      echo "$0 ppa:user/ppa-name"
    fi
    # chmod o+x add-apt-repository

    # chown root:root add-apt-repository

    After that i tried to install SYSTEMBACK by following and get the respected output:

    Code:
    sudo add-apt-repository ppa:nemh/systemback
    nemh/systemback
    Executing: /tmp/apt-key-gpghome.bc12ITtR7t/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys
    
    apt-get update
    Hit:1 http://ppa.launchpad.net/noobslab/themes/ubuntu trusty InRelease
    Hit:2 http://ppa.launchpad.net/nemh/systemback/ubuntu trusty InRelease         
    Ign:4 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ InRelease
    Hit:5 http://deb.i2p2.no unstable InRelease
    Hit:3 https://archive-3.kali.org/kali kali-rolling InRelease
    Get:6 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ Release [976 B]
    Fetched 976 B in 1s (500 B/s)                             
    Reading package lists... Done
    
    
    sudo apt-get install systemback 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    The following packages have unmet dependencies:
     systemback : Depends: libsystemback (= 1.8.402~ubuntu14.04.1) but it is not going to be installed
                  Depends: systemback-scheduler (= 1.8.402~ubuntu14.04.1) but it is not going to be installed
                  Recommends: lupin-casper but it is not installable
                  Recommends: systemback-cli (= 1.8.402~ubuntu14.04.1) but it is not going to be installed
                  Recommends: ttf-ubuntu-font-family but it is not installable
    E: Unable to correct problems, you have held broken packages.
    I don't know what is the problem whether it is the problem with adding ppa repository or packages or maybe both.
    I understand adding other repository to source list can break my kali but i want to play with SYSTEMBACK and once installed i will remove ppa repository.

    These are the links i followed:
    https://alancads.wordpress.com/2016/...-debian-linux/
    https://launchpad.net/systemback
    https://www.blackmoreops.com/2014/02...pt-repository/


    Thanks
    Sincerely Abhi.

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Location
    in a computer
    Posts
    633
    My guess is that systemback has dependencies that aren't in your /etc/apt/sources.list

    I suggest using another Linux distro (like Mint or Ubuntu) for experimenting with systemback. That way, your Kali install will stay clean

  3. #3
    Junior Member
    Join Date
    Sep 2016
    Posts
    12
    hello grid thanks for the reply.....I think i am good with kali any alternate to systemback you suggest

  4. #4
    Senior Member
    Join Date
    Apr 2013
    Location
    in a computer
    Posts
    633
    When I need to do backups on Kali, I either manually copy the files I need to external storage, or use Clonezilla (it's free).

  5. #5
    Junior Member
    Join Date
    Sep 2016
    Posts
    12
    Thanks grid for the suggestion and your precious time spent on me. Thanks again

  6. #6
    Senior Member
    Join Date
    Apr 2013
    Location
    in a computer
    Posts
    633
    No problem...you are welcome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •