Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

add-apt-repository: command not found

Started by Goofy, January 25, 2017, 04:04:15 PM

Previous topic - Next topic

Goofy

Hello pavroo, hello blaze, hello to all,   ;D

I have discovered a new problem:
After a discussion in the Forum of the 'Widelands'-Game, the people there suggested me, that I should use the daily builds of Widelands.
(Widelands is a game from the GameOver-Edition of Sparky)
They proposed the command

sudo add-apt-repository ppa:widelands-dev/widelands-daily

to get daily updates for the programm. And Sparky answered:

add-apt-repository: command not found

Then I found an info-source, which says, that I need to install 'python-software-properties', 'apt-file' and 'software-properties-common':
https://pricklytech.wordpress.com/2014/05/16/ubuntu-server-14-4-trusty-add-apt-repository-command-not-found/
I've done it, like in the link is described.

Then I found this in the Sparky-Forum:
https://sparkylinux.org/forum/index.php/topic,3539.0.html
Pavroo says, that Re-branding Debian into Sparky made conflicts with the package. Perhaps he meant 'software-properties-common'?

First I want to know, if it was the wrong way to install the 'python-software-properties', 'apt-file' and 'software-properties-common' for Sparky? Should I remove these packages better?   ???

The second is:
Can I modify the sources.list manually with the lines:

deb http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu
deb-src http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu

like is it described here?

https://launchpad.net/~widelands-dev/+archive/ubuntu/widelands-daily

No, isnt it? Because it's for Ubuntu?

It's all very complicated. Maybe I should use the default updates, which is supported by Sparky automatically...
???

Goofy

pavroo

QuoteFirst I want to know, if it was the wrong way to install the 'python-software-properties', 'apt-file' and 'software-properties-common' for Sparky? Should I remove these packages better?
You can keep it, but synaptic doesn't open the repository changer option, so I suggest to remove it.

The additional repository should be saved in the :
/etc/apt/sources.list.d
directory.
So create new file, for example:
etc/apt/sources.list.d/widelands-daily.list
and past the repo:
deb http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety main
deb-src http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety main

Instead of what you did before.
And don't forget to install the repository public key.

It should works, but no guarantee.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

Goofy

Many much thank you, pavroo    :)

Pavroo, do I need the '#'-keys before the Lines? For example

#deb http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety main

...Because I've taken the way, to edit another source list, and there are all lines with the '#'-key at the first place?
(I have taken the sid.list for editing, like in your example from the other Sparky-Topic)

Pavroo, how can I install the repository public key? ...What is it...?   :-[
on this widelands-link they give
'Signing key:
    1024R/358E1F6F'
https://launchpad.net/~widelands-dev/+archive/ubuntu/widelands-daily
In the subject 'Technical details about this PPA'

Is that what I need to install?
???

goofy



pavroo

No "#" as I posted already, the lines have to start with "deb".

Try to install public key in this way:
sudo gpg --keyserver keys.gnupg.net --recv key-ID
sudo gpg --export key-ID | apt-key add -


it means, it your case:
sudo gpg --keyserver keys.gnupg.net --recv 358E1F6F
sudo gpg --export 358E1F6F | apt-key add -


Then:
sudo apt-get update
to make sure it works fine.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

Goofy

Hello pavroo,
ok, I've done all:

1. creating a new update-list in
/etc/apt/sources.list.d/widelands-daily-update.list
contains the lines:
## Widelands Daily Build
deb http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety main
deb-src http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety main

2. The commands:

sudo gpg --keyserver keys.gnupg.net --recv 358E1F6F
sudo gpg --export 358E1F6F | apt-key add -

sudo apt-get update

were successful, I believe

3. After all I reboot the computer and made anew a global update (by using the APTus-tool)


But unfortunality if start widelands at the terminal the version is not the "daily"-version:

goofy@pc01goofy:~$ widelands
This is Widelands Version build-19 (Release)
Set home directory: /home/goofy/.widelands
Adding directory: /usr/share/games/widelands/data
selected language: (system language)
using locale de_DE.UTF-8
...

I haven't got any idea...  :-\


pavroo

Simply check it:
sudo apt-get update
apt-cache policy widelands

and show output of the second command.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

Goofy

Hey pavroo,
I think you are the best!   :D

I think all is working fine. Look:

goofy@pc01goofy:~$ sudo apt-get update
[sudo] Passwort für goofy:
Holen:1 http://security.debian.org testing/updates InRelease [68,2 kB]
OK:2 http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety InRelease
OK:3 http://ftp.debian.org/debian testing InRelease                           
OK:4 http://www.deb-multimedia.org testing InRelease                           
OK:5 http://sparkylinux.org/repo testing InRelease                             
Es wurden 68,2 kB in 0 s geholt (92,1 kB/s).         
Paketlisten werden gelesen... Fertig

The line 'OK:2...' is the new source

And the second command:

goofy@pc01goofy:~$ apt-cache policy widelands
widelands:
  Installiert:           1:19+repack-2
  Installationskandidat: 1:19+repack-2
  Versionstabelle:
*** 1:19+repack-2 500
        500 http://ftp.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
     1:18-ppa0-bzr8262-201701251832~ubuntu16.10.1 500
        500 http://ppa.launchpad.net/widelands-dev/widelands-daily/ubuntu yakkety/main amd64 Packages

There is the daily-version called '1:19+repack-2' !   :o

But if I start widelands, the status-information is 'Version build-19 (Release)', which is apparently wrong...
Would you agree with me?

If yes, I will post it in the widelands-forum. And I will tell them the solution for Sparky.

A small question at least:
How I can get these nice text-blocks for the command codes, which you are using?

Hmmm... I'm happy   ;)
...time for a break...   8)
https://www.youtube.com/watch?v=ZbZSe6N_BXs

blaze

Quote from: Goofy on January 26, 2017, 03:56:13 PMHow I can get these nice text-blocks for the command codes, which you are using?

Click on the #, in the "Post reply" editor, for "code".
Unstable OpenBoxer


View the most recent posts on the forum