Adding repository error

10,529

Try this,

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties

then

sudo add-apt-repository ppa:chris-lea/node.js
Share:
10,529
Max Ricketts
Author by

Max Ricketts

Updated on September 18, 2022

Comments

  • Max Ricketts
    Max Ricketts over 1 year

    I'm trying to add a repository on my VPS with Ubuntu 12.04 installed using this command :

    sudo add-apt-repository ppa:chris-lea/node.js
    

    But terminal is showing

    command not found

    Then I've entered the following command to solve the problem

    sudo apt-get install software-proprieties-common
    

    But unfortunately I'm getting the following error :

    E: Unable to locate package software-proprieties-common
    

    How can I solve this problems?

    Update

    Now software-properties-common installed, but same problem continues. Please check the screen shot.enter image description here

    Update 2

    Problem continues enter image description here

  • Max Ricketts
    Max Ricketts over 10 years
    Please check that, I've already entered "sudo apt-get install software-properties-common", but it's showing "Unable to loate package software-properties-common". :(
  • Avinash Raj
    Avinash Raj over 10 years
    pleasecheck your command,it is not software-proprieties-common it is software-properties-common
  • Avinash Raj
    Avinash Raj over 10 years
    try without sudo.
  • Max Ricketts
    Max Ricketts over 10 years
    Unfortunately, problem continues. Please check update.
  • Avinash Raj
    Avinash Raj over 10 years
    it is python-software-properties not python-properties-common.
  • Enno
    Enno over 9 years
    I have the same issue, and neither package is available. In fact, apt-cache search properties comes up entirely empty. Have I somehow hosed my system in some way? I am also missing some other packages, which makes me feel like apt is just very confused.