๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

OS/๐Ÿง Linux

โœ… Solved * [Ubuntu] add-apt-repository command not found

๋ ˆํฌ์ง€ํ† ๋ฆฌ ์ถ”๊ฐ€๊ฐ€ ๋˜์ง€ ์•Š๋Š”๋‹ค... ๐Ÿ˜ญ

 

Ubuntu์— ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ• ์ค‘์— ํ•˜๋‚˜๋กœ PPA(Personal Package Archive)๋ฅผ ์ด์šฉํ•˜๋Š” ๊ฒƒ์ด ์žˆ๋Š”๋ฐ

๋ณดํ†ต ์„ค์น˜ ์ „ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น์–ด๋กœ PPA ์ €์žฅ์†Œ๋ฅผ ์ถ”๊ฐ€ํ•ด ์ค€๋‹ค.

 

$ sudo add-apt-repository ppa:some/ppa

 

์ €์žฅ์†Œ๋ฅผ ์ถ”๊ฐ€ํ•ด ์ฃผ๋ ค๊ณ  ํ•˜๋” ๊ทธ ๋•Œ "sudo: add-apt-repository command not found" ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ๋‹ค.

 

๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” Ubuntu docker image์— ์•„๋งˆ ์ €์žฅ์†Œ(repository)๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ํŒจํ‚ค์ง€๊ฐ€ ์„ค์น˜๋˜์ง€ ์•Š์•„์„œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์ด๋ผ๊ณ  ์ง์ž‘์€ ํ–ˆ์ง€๋งŒ

์–ด๋–ป๊ฒŒ ์ˆ˜์ •ํ•˜๋Š”์ง€ ๋ง‰๋ง‰ํ•˜๋˜ ๊ทธ ๋•Œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์„ ์ฐพ์•˜๋‹ค.

 

ํ•ด๋‹น ๋ฐฉ๋ฒ•์€ Ubuntu, Devian ๋˜๋Š” Devin-based Linux ๋ฐฐํฌํŒ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

Solved

์•ž์„œ ์„ค๋ช…ํ•œ ๊ฒƒ๊ณผ ๊ฐ™์ด ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

$ sudo apt-get install software-properties-common

 

apt-get-repository๋ผ๋Š” ๋ช…๋ น์–ด๋Š” software-properties-common ์ด๋ผ๋Š” ํŒจํ‚ค์ง€์— ํฌํ•จ๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์œ„์˜ ๋ช…๋ ์œผ๋กœ ํ•ด๋‹น ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด์ค€๋‹ค.

ํ•ด๋‹น ํŒจํ‚ค์ง€ ์„ค์น˜ ํ›„์—๋Š” $ add-apt-repository ํ˜น์€ $ apt-add-repository ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 


Thanks for ๐Ÿ™ˆ