I wanted to play with "systemd", so did this:
$ sudo add-apt-repository ppa:pitti/systemd
(Just to keep things amusing, there's "add-apt-repository" and "apt-add-repository" - they act the same)
Which gaves this:
Code: Select all
$ sudo add-apt-repository ppa:pitti/systemd
You are about to add the following PPA to your system:
WARNING! THIS IS A DEMO ONLY! Only use this if you know what you are doing, and preferably only in virtual or real machines which you can easily reinstall.
Packages to run Ubuntu 12.04 with systemd.
Install at least systemd with its recommends (libpam-systemd and ubuntu-systemd-units). You can either install systemd-sysv, or set "init=/lib/systemd/systemd" in the kernel command line in the grub menu, so that you can switch between upstart and systemd.
More info: https://launchpad.net/~pitti/+archive/systemd
Press [ENTER] to continue or ctrl-c to cancel adding it
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 160, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
self.reload_sourceslist()
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
[b] File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template[/b]
Code: Select all
"Repositories changed
The repository information has changed. You have to click on the "Reload" button for your changes to take effect"
One non-working solution indicated that some sort of non-matching version breaks apt (did I get some "Ubuntu" someplace where it should be "Mint"...?):
Code: Select all
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 13 Maya
Release: 13
Codename: maya
Code: Select all
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"
I'm not sure what this means, but it was part of a "solution" didn't make much sense:
Code: Select all
$ apt-cache policy base-files
base-files:
Installed: 6.5ubuntu6.2
Candidate: 6.5ubuntu6.2
Version table:
*** 6.5ubuntu6.2 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
6.5ubuntu6 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
???? TIA!