Editing Add-apt-repository

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{Lowercase}}
 
{{Lowercase}}
 
<code>add-apt-repository</code> is a [[python]] script included in <code>[[software-properties-common]]</code> package.
 
<code>add-apt-repository</code> is a [[python]] script included in <code>[[software-properties-common]]</code> package.
 
<code>apt-add-repository -y [[ppa]]:ansible/ansible</code>
 
 
<code>[[add-apt-repository -y ppa:ethereum/ethereum]]</code>
 
 
* [[add-apt-repository --list]]
 
  
  
 +
apt-add-repository -y [[ppa]]:ansible/ansible
 
   
 
   
<code>sudo [[apt-add-repository]] "deb [arch=amd64] https://apt.releases.hashicorp.com $([[lsb_release -cs]]) main"</code>
+
<code>sudo [[apt-add-repository]] "deb [arch=amd64] https://apt.releases.hashicorp.com $([[lsb_release -cs]]) main"</code>
  
== Example ==
+
==Example execution ==
 
  sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic main'
 
  sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic main'
 
  Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
 
  Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Line 26: Line 21:
 
  Reading package lists... Done
 
  Reading package lists... Done
  
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
 
Repository: 'deb [arch=amd64] https://apt.releases.hashicorp.com jammy main'
 
Description:
 
Archive for codename: jammy components: main
 
More info: https://apt.releases.hashicorp.com
 
Adding repository.
 
Press [ENTER] to continue or Ctrl-c to cancel.
 
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-https_apt_releases_hashicorp_com-jammy.list
 
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_apt_releases_hashicorp_com-jammy.list
 
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-https_apt_releases_hashicorp_com-jammy.list
 
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_apt_releases_hashicorp_com-jammy.list
 
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease
 
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
 
Hit:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
 
Get:4 https://apt.releases.hashicorp.com jammy InRelease [11.1 kB]
 
Hit:5 https://apt.releases.hashicorp.com hirsute InRelease
 
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
 
Get:7 https://apt.releases.hashicorp.com jammy/main amd64 Packages [65.1 kB]
 
Fetched 187 kB in 1s (288 kB/s)
 
Reading package lists... Done
 
W: https://apt.releases.hashicorp.com/dists/jammy/InRelease: Key is stored in legacy [[trusted.gpg]] keyring (/etc/apt/trusted.gpg), see the [[DEPRECATION]] section in [[apt-key]](8) for details.
 
  
 
== Related commands ==
 
== Related commands ==
 
* <code>[[apt update]]</code>
 
* <code>[[apt update]]</code>
 
* <code>[[apt-cache search]]</code>
 
* <code>[[apt-cache search]]</code>
* <code>[[apt install software-properties-common]]</code>
 
  
 
== See also ==
 
== See also ==
* {{add-apt-repository}}
 
 
* {{apt}}
 
* {{apt}}
  
  
 
[[Category:Linux]]
 
[[Category:Linux]]
[[Category:APT]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: