Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please don't scorch me i'm still novice and only seeking help. I ran the following commands:

echo "deb nightly release" 

sudo tee /etc/apt/sources.list.d/tox.list

wget -qO - | sudo apt-key add -

sudo apt-get install apt-transport-https

I want to learn how to reverse these commands.

share|improve this question

You first command is not rightly put, perhaps you meant:

echo "deb nightly release" | sudo tee /etc/apt/sources.list.d/tox.list

Now let's undo the commands one by one:

  • You can either rename or remove the /etc/apt/sources.list.d/tox.list file:

    sudo mv /etc/apt/sources.list.d/tox.list /etc/apt/sources.list.d/tox.list.bak


    sudo rm /etc/apt/sources.list.d/tox.list
  • Let's remove the gpg key of tox from the keyring of apt:

    sudo apt-key del 1A171ABE
  • Let's remove the apt-transport-https package:

    sudo apt-get remove apt-transport-https
    sudo apt-get purge apt-transport-https   ## Removing configuration files too
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.