Results 1 to 2 of 2

Thread: How to fix PPA - Personal Package Archives : KALI LINUX

  1. #1
    Join Date
    2013-Mar
    Location
    In AnonWorld
    Posts
    38

    How to fix PPA - Personal Package Archives : KALI LINUX

    Hi,
    Tutorial how to fix ppa errors
    1.
    Code:
    apt-get install python-software-properties
    2.
    Code:
    apt-get install apt-file && apt-file update
    3.
    Code:
    apt-file search add-apt-repository
    output
    Code:
    python-software-properties: /usr/bin/add-apt-repository
    python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz
    4. cd /usr/sbin
    then:
    Code:
    in terminal type : 
    Code:
    gedit add-apt-repository
    add code to it & save it
    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 lucid 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 /usr/sbin/add-apt-repository chown root:root /usr/sbin/add-apt-repository

    5.now by doing this you will no longer get errors:
    Code:
    add-apt-repository ppa:ondrej/php5
    add-apt-repository ppa:ferramroberto/java
    Last edited by Gr4nD T3R0R; 2013-08-22 at 19:46. Reason: forgot something :/

  2. #2
    Join Date
    2013-Oct
    Posts
    1
    Quote Originally Posted by Gr4nD T3R0R View Post
    Hi,
    Tutorial how to fix ppa errors
    1.
    Code:
    apt-get install python-software-properties
    2.
    Code:
    apt-get install apt-file && apt-file update
    3.
    Code:
    apt-file search add-apt-repository
    output
    Code:
    python-software-properties: /usr/bin/add-apt-repository
    python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz
    4. cd /usr/sbin
    then:
    Code:
    in terminal type : 
    Code:
    gedit add-apt-repository
    add code to it & save it
    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 lucid 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 /usr/sbin/add-apt-repository chown root:root /usr/sbin/add-apt-repository

    5.now by doing this you will no longer get errors:
    Code:
    add-apt-repository ppa:ondrej/php5
    add-apt-repository ppa:ferramroberto/java
    can use echo raring (13.04) or saucy (13.10) in bash script (line 14).

    Thanks you sharing.

Similar Threads

  1. Replies: 0
    Last Post: 2020-05-23, 05:39
  2. Not Enough Space /Archives/
    By h3lpme in forum TroubleShooting Archive
    Replies: 5
    Last Post: 2017-02-18, 01:34
  3. Using Kali 2016.6 LXDE can't find WPA2 personal.
    By sgtkeebler in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-12-25, 01:39

Posting Permissions

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