You are not logged in.

#1 2016-04-17 12:29:52

noah
Member
Registered: 2016-04-02
Posts: 6

[SOLVED] I can't use add-apt-repository

I have python-software-properties installed.
When I type sudo add-apt-repository I get the error

sudo: add-apt-repository: command not found

The only things I can find about this is to install python-software-properties but I have them installed.
What should I do?

Thanks in advance, noah smile

Last edited by noah (2016-04-17 19:58:28)


Think different ~ Think Linux
***
Geek Out Until It Megahertz

Offline

#2 2016-04-17 12:40:25

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] I can't use add-apt-repository

noah wrote:

...
What should I do?
...

Do a Debian package search: Menu -> Help -> Debian -> Package Search ?

The `add-apt-repository` command is in the `software-properties-common` package.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2016-04-17 12:44:18

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] I can't use add-apt-repository

If BunsenLabs is not recognised as a release, you may have to:

sudo apt purge bunsen-os-release

to get it working properly.

Be aware that PPAs are not compatible with BunsenLabs and may cause problems.

See the "Don't Break BunsenLabs" link in my signature for more on this.

Offline

#4 2016-04-17 19:57:02

noah
Member
Registered: 2016-04-02
Posts: 6

Re: [SOLVED] I can't use add-apt-repository

thanks guys, I got it working. I ran

sudo apt-get install python3-software-properties

and

sudo apt-get install software-properties-common

which fixed the problem, and it's all working now.

noah smile


Think different ~ Think Linux
***
Geek Out Until It Megahertz

Offline

#5 2018-02-25 10:49:55

bayou
Member
Registered: 2016-01-28
Posts: 23

Re: [SOLVED] I can't use add-apt-repository

I ran both,
<sudo apt-get install python3-software-properties>
<sudo apt-get install software-properties-common>
But,they did not work at all.

"software-properties-common"
I installed it on another pc few months ago, and it had worked completely.
What's the difference?

Last edited by bayou (2018-02-25 19:53:43)

Offline

#6 2018-02-26 01:50:19

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: [SOLVED] I can't use add-apt-repository

What's the terminal output when "they don't work"?

Offline

#7 2018-02-26 12:04:15

bayou
Member
Registered: 2016-01-28
Posts: 23

Re: [SOLVED] I can't use add-apt-repository

Thank you,MX Linux Developer.


<terminal output is here ↓ >

*****@*******:~$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
[sudo] password for *****:
You are about to add the following PPA to your system:
This PPA contains the latest release of Grub Customizer.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
More info: https://launchpad.net/~danielrichter200 … customizer
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp2es4jz_3/secring.gpg' created
gpg: keyring `/tmp/tmp2es4jz_3/pubring.gpg' created
gpg: requesting key 3F055C03 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp2es4jz_3/trustdb.gpg: trustdb created
gpg: key 3F055C03: public key "Launchpad PPA for Daniel Richter" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
*****@*******:~$ sudo apt-get update
Ign http://ppa.launchpad.net bunsen-hydrogen InRelease                         
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]             
Ign http://deb.debian.org jessie InRelease                                     
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]                   
Ign http://ppa.launchpad.net bunsen-hydrogen InRelease                         
Hit http://pkg.bunsenlabs.org jessie-backports InRelease                       
Hit http://security.debian.org jessie/updates/non-free amd64 Packages           
Hit http://pkg.bunsenlabs.org bunsen-hydrogen InRelease                         
Hit http://security.debian.org jessie/updates/non-free Translation-en           
Hit http://security.debian.org jessie/updates/main amd64 Packages               
Hit http://security.debian.org jessie/updates/contrib amd64 Packages           
Hit http://security.debian.org jessie/updates/contrib Translation-en           
Hit http://security.debian.org jessie/updates/main Translation-en               
Ign http://ppa.launchpad.net bunsen-hydrogen InRelease                         
Hit http://deb.debian.org jessie Release.gpg                                   
Hit http://deb.debian.org jessie Release                                       
Hit http://pkg.bunsenlabs.org jessie-backports/main amd64 Packages             
Ign http://ppa.launchpad.net bunsen-hydrogen Release.gpg                       
Get:3 http://deb.debian.org jessie-updates/main amd64 Packages/DiffIndex [10.9 kB]
Hit http://deb.debian.org jessie-updates/contrib amd64 Packages                 
Get:4 http://deb.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Ign http://ppa.launchpad.net bunsen-hydrogen Release.gpg                       
Hit http://pkg.bunsenlabs.org bunsen-hydrogen/main amd64 Packages               
Hit http://deb.debian.org jessie-updates/contrib Translation-en                 
Get:5 http://deb.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B]
Get:6 http://deb.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Ign http://ppa.launchpad.net bunsen-hydrogen Release.gpg                       
Hit http://deb.debian.org jessie/main amd64 Packages                           
Ign http://ppa.launchpad.net bunsen-hydrogen Release                           
Hit http://deb.debian.org jessie/non-free amd64 Packages                       
Hit http://deb.debian.org jessie/contrib amd64 Packages                         
Ign http://ppa.launchpad.net bunsen-hydrogen Release                           
Hit http://deb.debian.org jessie/contrib Translation-en                         
Ign http://ppa.launchpad.net bunsen-hydrogen Release                           
Hit http://deb.debian.org jessie/main Translation-en                           
Hit http://deb.debian.org jessie/non-free Translation-en                       
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en_US           
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en             
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en_US           
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en               
Err http://ppa.launchpad.net bunsen-hydrogen/main amd64 Packages               
  404  Not Found
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en_US
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en
Err http://ppa.launchpad.net bunsen-hydrogen/main amd64 Packages
  404  Not Found
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en_US
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en
Err http://ppa.launchpad.net bunsen-hydrogen/main amd64 Packages
  404  Not Found
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en_US
Ign http://ppa.launchpad.net bunsen-hydrogen/main Translation-en
Fetched 224 kB in 30s (7,421 B/s)
W: Failed to fetch http://ppa.launchpad.net/atareao/atarea … 4/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/danielrichter2 … 4/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/teejee2008/ppa … 4/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
*****@*******:~$ sudo apt-get install grub-customizer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package grub-customizer
*****@*******:~$

Offline

#8 2018-02-26 22:25:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] I can't use add-apt-repository

bayou wrote:
~$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer

It's probably a good thing that didn't work because it may have broken your system completely.

The only way to make that `add-apt-repository` command work is to "fake" /etc/os-release and mimic an Ubuntu version.

What do you want to do with your boot screen?

I'm sure we can do it without the framework wink

Offline

#9 2018-02-26 23:05:45

bayou
Member
Registered: 2016-01-28
Posts: 23

Re: [SOLVED] I can't use add-apt-repository

Thank you,Head_on_a_Stick.
I didn't know that grub-customizer might broke BL system.
But I want to install some other packages, for example,my-weathe-indicator,calendar-indicator,selene,clipgrab,albert,handbrake,simple screen recorder,and so on.

Offline

#10 2018-02-26 23:08:20

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] I can't use add-apt-repository

bayou wrote:

I want to install some other packages, for example,my-weathe-indicator,calendar-indicator,selene,clipgrab,albert,handbrake,simple screen recorder,and so on.

See https://forums.bunsenlabs.org/viewtopic.php?id=58

Offline

#11 2018-02-26 23:20:29

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: [SOLVED] I can't use add-apt-repository

You need to look around for Debian-compatible repositories instead of thinking that Ubuntu PPAs are the answer.

I keep a lot of the multimedia ones updated as far as possible for a Jessie base in my own OBS repo: http://forums.debian.net/viewtopic.php?f=6&t=127574
including handbrake, clipgrab, simplescreenrecorder, etc.  I have some other repos there, such as for qBittorrent or the Pale Moon browser, too.  The MX Linux repos also have most of these outside packages for Jessie, too, such as grub-customizer.

Offline

#12 2018-02-27 01:37:52

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED] I can't use add-apt-repository

Moral of the story I can tell is don't ever install any packages meant for Ubuntu onto a Debian/BL system as you run the risk of breakage. At the least the application may or may not run or at worst you've broken something critical so a reinstall may be required

I been there done that myself. You been warned :^)


PS: Stevep got it right...stay away from the Ubuntu PPA's unless the PPA's owner says there are Debian compatible packages in such repo.

Last edited by DeepDayze (2018-02-27 01:39:27)


Real Men Use Linux

Offline

#13 2018-02-27 02:49:51

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: [SOLVED] I can't use add-apt-repository

Yeah, you might be ok installing an icon pack, say, but Ubuntu follows a rolling release cycle means a lot of its core libraries are differently versioned than those of Debian stable.
Changes to underlying C++ libraries, python libraries, and perl libraries, especially can hose a system quickly.

Offline

#14 2018-02-27 10:17:40

bayou
Member
Registered: 2016-01-28
Posts: 23

Re: [SOLVED] I can't use add-apt-repository

Thank you,everyone. I'ii keep using BL without those packages. Thak you vey much.

Offline

#15 2018-02-27 22:34:21

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: [SOLVED] I can't use add-apt-repository

bayou wrote:

Thank you,everyone. I'ii keep using BL without those packages. Thak you vey much.

You don't have to do that.  Like I said, many of those are available in my own repo and won't break your install.

Offline

#16 2018-03-01 01:22:42

bayou
Member
Registered: 2016-01-28
Posts: 23

Re: [SOLVED] I can't use add-apt-repository

Thanks.I'll Try some of them.

Offline

Board footer

Powered by FluxBB