Jodes
Posts: 6
Joined: Sun Nov 03, 2013 3:53 pm
Contact: Website

How to add a repository

Sun Nov 03, 2013 3:57 pm

Hi,

I'm trying to install http://www.openhantek.org/ on my PI.

I'm not even getting through the first hurdle, it appears the command "add-apt-repository" is not found.

How do I add a repository to Raspbian? I've tried Googling to no avail. Is it even possible to add a repository?

Thanks!

User avatar
joan
Posts: 15787
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to add a repository

Sun Nov 03, 2013 5:02 pm

Look in the /etc/apt directory. In particular /etc/apt/sources.list and/or files in the /etc/apt/sources.list.d directory.

These are all system files. You'll need to use sudo nano or similar to edit the files.

User avatar
DeeJay
Posts: 2026
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: How to add a repository

Sun Nov 03, 2013 5:11 pm

Jodes wrote:Hi,

I'm trying to install http://www.openhantek.org/ on my PI.

I'm not even getting through the first hurdle, it appears the command "add-apt-repository" is not found.

How do I add a repository to Raspbian? I've tried Googling to no avail. Is it even possible to add a repository?

Thanks!
If you are reading the page at http://www.openhantek.org/w/p/installation/, the clue is in the first sentence -
When using Ubuntu, OpenHantek can be easily installed from it's launchpad repository. To add the repository just execute the following command:

$ sudo add-apt-repository ppa:oliverhaag/openhantek
Since you are using Raspbian, you cannot be using Ubuntu. So the rest of the sentence does not apply to you.

You will have to use the instructions which follow on that page, headed "Compiling from source"
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

rudiel
Posts: 18
Joined: Wed Dec 19, 2012 6:13 pm

Re: How to add a repository

Fri Jan 03, 2014 9:58 pm

Hi all

I have also been toying with the idea to hook up my Hantek DSO 2090 with a RPi . Have you had any success. Any help will be greatly appreciated ...

thanks a mil..

Rudie Lamprecht
South Africa

grese
Posts: 1
Joined: Tue Aug 05, 2014 3:07 am

Re: How to add a repository

Tue Aug 05, 2014 3:11 am

Raspberry pi comes without it installed by default, but running this quick command will make add-apt-repository available for you.

sudo apt-get install python-software-properties

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 14229
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: How to add a repository

Sun Oct 19, 2014 6:15 pm

"adding a repository" is just adding another URL to a list of web-sites (repositories) in a text file.

you can do that with any text editor.

The real question is simply where the text file is located, and what its name is.

For that google is your friend.

User avatar
rpdom
Posts: 19283
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to add a repository

Sun Oct 19, 2014 8:06 pm

A more important question is "Is that repository compatible with Raspbian and the Raspberry Pi?"

That one probably isn't (if it doesn't say it is compatible, assume it is not).

The earlier comment about compiling from source is the safest option.

User avatar
IgorGanapolsky
Posts: 33
Joined: Sun Apr 10, 2016 8:32 pm

Re: How to add a repository

Sun Apr 17, 2016 11:38 pm

grese wrote:Raspberry pi comes without it installed by default, but running this quick command will make add-apt-repository available for you.

sudo apt-get install python-software-properties
Cannot run

Code: Select all

add-at-repository
on Raspberry Pi 3. Get an error:
add-apt-repository: command not found

DirkS
Posts: 10699
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to add a repository

Mon Apr 18, 2016 12:22 am

add-apt-repository: command not found
That script is part of the package software-properties-common, see https://packages.debian.org/search?suit ... repository
To install it

Code: Select all

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

MHerman
Posts: 3
Joined: Fri Apr 07, 2017 9:04 am

Re: How to add a repository

Fri Apr 07, 2017 1:24 pm

Somebody...

If i can insert the software source.. Which mean i can install wine n no need that exagear? Am i right?

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: How to add a repository

Fri Apr 07, 2017 2:42 pm

MHerman wrote:Somebody...

If i can insert the software source.. Which mean i can install wine n no need that exagear? Am i right?
Wine is compiled for machines with x86 / ppc CPU machines:

https://packages.debian.org/jessie/wine

The RPi has ARM CPU, Exagear I believe use an x86 emulator to run Wine........
Take what I advise as advice not the utopian holy grail, and it is gratis !!

MHerman
Posts: 3
Joined: Fri Apr 07, 2017 9:04 am

Re: How to add a repository

Sat Apr 08, 2017 4:41 am

SO, do you have any idea how to install wine without use exagear?
since i cannot insert the software souces? =.="

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: How to add a repository

Sat Apr 08, 2017 9:30 am

MHerman wrote:SO, do you have any idea how to install wine without use exagear?
since i cannot insert the software souces? =.="
viewtopic.php?f=63&t=175389#p1119090

Seems like qemu virtual machine can virtualise a x86 environment and the package is available from the Radpbian Jessie repository:

http://www.qemu-project.org
Take what I advise as advice not the utopian holy grail, and it is gratis !!

MrDestructo
Posts: 1
Joined: Mon Jun 25, 2018 8:44 am

Re: How to add a repository

Mon Jun 25, 2018 9:12 am

I found myself needing a library from a distro that I'd just upgraded from. I had upgraded to Stretch from Jessie and I needed libjpeg8-dev to make Omxiv which is not available in Stretch. I added the old distro back to the sources list as follows.

In a terminal I entered:
sudo pico /etc/apt/sources.list

Next, edit the sources file to add Jessie by entering the following lines:
deb http://raspbian.raspberrypi.org/raspian/ jessie main contribute non-free rpi

deb-src http://raspbian.raspberrypi.org/raspian/ jessie main contribute non-free rpi

Next write/save (Ctrl o) the file and exit (Ctrl x).

Next, run update:
sudo apt-get update

That's it! I just did an install of libjpeg8-dev without any problems. Next I went back and opened the sources.list file again in Pico and commented out the souces that I had added by placing a # at the start of my Jessie sources so that I could add them back if needed.

Lastly, I ran update again to refresh the sources without Jessie so that no future installs could access the old distro unless I had no choice but to provide them access.

The end result was that I was finally able to run Raspicast on Stretch.

Return to “Raspberry Pi OS”