Nightly Builds for Ubuntu via PPA

• Aug 29, 2015 - 01:44

Allow me to introduce a new series of nightly builds specifically targeted at Ubuntu! The new nightly builds currently work on Ubuntu 15.04 and the upcoming 15.10, though sadly not on older versions of Ubuntu at the moment. (The nightlies probably also work on recent Debian releases and other related distributions like Mint, let me know how you get on in the comments!)

The nightly builds are available via a dedicated nightly PPA on the MuseScore Maintainers' Launchpad page. Please report any new bugs you find via the issue tracker here on MuseScore.org. Always do a quick search to see if someone else has reported the bug first. In the report, please mention your OS, the fact that you were using a nightly build, and the revision number (given in the "About" dialog).

Why have nightly builds?

There are two main reasons:
1. USER TESTING - if you find a bug in a normal MuseScore release you can use the Nightly Build to see whether it has been fixed before you report it. You can also use it to test new features and provide feedback.
2. AUTOMATED BUILD TESTING - nightly builds are produced on virtual machines running the same operating system as the build is intended for (i.e. Ubuntu). I am alerted by email if the code fails to build. If the code worked fine one day but it fails to build the next day then I can isolate the problem almost immediately. Without the automated builds we wouldn't find out about system-specific problems until much later and it would be harder to find the cause of the problem.

WARNINGS

All the usual advice applies (no warranty, make regular backups, be careful, etc.) and, since nightlies are based on code in active development, a few extra warnings also apply:

  1. INCOMPATIBLE SCORES - do not expect scores created with a nightly build to work with past or future releases of MuseScore, or even with the next nightly build!
  2. UNTESTED CODE - all nightly builds undergo various automatic checks, but they have not been checked by a human. Expect to find bugs!
  3. MISSING FEATURES - features present in a nightly build might not make it into the final MuseScore release.

For these reasons, please do not use a nightly build as you regular score editor. Keep a normal copy of MuseScore installed for regular use. The nightlies have been specifically designed to run alongside a normal copy of MuseScore without conflicts (but again, no guarantees!).

Installing the Nightly Build

1. Add the PPA

sudo add-apt-repository ppa:mscore-ubuntu/mscore-nightly

2. Install the nightly build

sudo apt-get update
sudo apt-get install musescore-nightly

Using the Nightly Build

1. From the command line

You can use either of these commands:

mscore-nightly
musescore-nightly

2. From the Unity Laucher (or Applications menu or similar in Gnome, KDE or XFCE)

Simply click on the nightly launcher icon - it should be near the normal MuseScore icon.
Nightly-Launcher-Icon.png
(Note: MuseScore has used the white icon since v2.0.2 so the two icons might be the same on your system. Trust the text under the logo, not the logo itself!)

Updating the Nightly Build

A new nightly build is made available every day MuseScore's code changes on Github. You system should perform the update automatically, but you can force an update to happen immediately using:

sudo apt-get update
sudo apt-get upgrade

Of course, nothing will change if no updates are available.

Restoring factory default settings

If the nightly build breaks after an update try restoring factory default settings:

mscore-nightly -F

Only report a bug if the problem persists after a Factory Reset.

Removing the Nightly Build

1. Uninstalling

sudo apt-get remove --purge musescore-nightly

The nightly build should be gone now and it won't update or reinstall again unless you tell it to.

2. Removing the PPA

You don't have to remove the PPA, all removing it does is save you a few milliseconds whenever you update your package lists. However, if you do remove it you can add it again easily enough. To remove:

sudo add-apt-repository --remove ppa:mscore-ubuntu/mscore-nightly

Thanks to...

bodhi.zazen for his help getting me started with packaging for Debian & Ubuntu.
Toby Smithe for helping get the nightlies on the MuseScore Maintainers' Launchpad page.
robert leleu, pako, underquark and tiagovaz for providing early feedback on the nightlies.
lasconic for his support with making the necessary changes to the code to enable nightlies.


Comments

In reply to by [DELETED] 5

@lasconic Thanks very much, I'll send you a PM to confirm one or two details I'm not sure about. In my opinion Robert's builds are probably not necessary any more. I believe he was compiling them on his own PC at home, so he might welcome the reduction in his energy bills ;)

In reply to by [DELETED] 5

Leleu's nightlies are useful for linux users on non-ubuntu distros. I used to use them a lot when testing 2.0 on my arch linux machine.

UPADTE: I just tried download the .deb from https://launchpad.net/~mscore-ubuntu/+archive/ubuntu/mscore-nightly/+pa… on my arch linux machine and I am able to open the .deb in archive manager and navigate to /./usr/bin/ in the archieve and then manually extract mscore-nightly executable and it runs fine. So I suppose that is a workable workaround for arch linux users.

In reply to by [DELETED] 5

The dependencies (possibly only Qt?) are not satisfied in pre-15.04 versions of Ubuntu. Looking at Toby's packages it seems he had to package Qt himself to get it to work on 14.04 and 14.10. It's possible that I can borrow his Qt packages and it will work, at least for the time being until the dependencies change. That shouldn't be too hard so I will look into it now.

Long term I would like to support all versions of Ubuntu that are supported by Canonical, but this would mean maintaining my own packages of any unmet dependencies which is not something I have time for right now. But there may be another way...

As you know, there is a workaround for getting 2.0.2 on Ubuntu 15.04 if you manually add the 15.10 repository. Similarly, 14.10 and 14.04 users could manually download and extract the DEB files from my 15.XX nightlies and they *may* work if a recent Qt is also manually installed somewhere in $PATH. I'm not totally sure about this though.

UPDATE: Nightly Builds now available for Ubuntu 14.04 and 14.10!

Ubuntus older than 15.04 don't include the necessary Qt packages to build or run MuseScore, but on Ubuntu 14.04 and 14.10 you can borrow the Qt packages from Toby Smithe's existing MuseScore 2.0.0 packages. To do this, simply make sure you have the stable PPA installed as well as the nightly PPA:

sudo add-apt-repository ppa:mscore-ubuntu/mscore-stable
sudo add-apt-repository ppa:mscore-ubuntu/mscore-nightly
sudo apt-get update
sudo apt-get install musescore-nightly

Of course, if you have MuseScore 2.0.0 then you probably already have the stable PPA installed!

Please note: this not a permanent solution. At some point the dependencies will change and new Qt packages will have to be built, as is the case for every Linux distribution.

(Launchpad has reported the 14.04 build to be successful, but I don't have a copy of 14.04 to test it. It would be helpful if someone who does could verify that the new packages actually work. Thanks!)

In reply to by shoogle

I just installed the 14.04 nightly on my computer running Linux Mint 17.1 Rebecca without any problems. It seems to work! Awesome! Thanks a lot for making this possible, shoogle!

Mint 17.1 is using the same package base as Ubuntu 14.04 so it will probably work in Ubuntu as well.

In reply to by [DELETED] 5

Well it looks like Christmas arrived a bit earlier this year...

Here is a build of MuseScore 2.0.2 I've made from the Wily (Ubuntu 15.10) package that should work with Ubuntu 14.04. It's in my personal PPA for test packages. If a few people could give it a try I would be very grateful. If it works then I will update the stable PPA.

https://launchpad.net/~shoogle/+archive/ubuntu/test-ppa
(instructions on that page. Obviously you must replace "<package>" with "musescore".)

Notes:

  • You will need to have the stable PPA installed as well as my test PPA.
  • If MuseScore installs but doesn't run try a reset with mscore -F before reporting it broken.

In reply to by shoogle

I gave it another try. Uninstalling the old musescore 2.0.0 package, and after that I did:

glacier ~ # apt-get install musescore
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
musescore : Depends: qml-module-qtquick-controls but it is not installable
Depends: qml-module-qtquick-layouts but it is not installable
E: Unable to correct problems, you have held broken packages.

Actually it seems that two packages are missing.

In reply to by p.daniel

I've built packages for the two missing Qt components. If you could try again that would be great.

Note: When building these I accidentally packaged Qt 5.4 instead of Qt 5.3. I deleted the 5.4 package but apt-get might think it is still there.

#Try this first: (also remember to add the PPA again if you removed it before)
$  sudo apt-get update
$  sudo apt-get install musescore

#If that didn't work use this to force it to get Qt 5.3:
$  sudo apt-get install
qtquickcontrols-opensource-src=5.3.0-1ubuntu2ppa1~trusty1~rc1
$  sudo apt-get install musescore

Thanks for your help with this BTW! At some point I will have to make some LiveUSBs of older distros so that I can test these myself.

EDIT: That long "install" command should all be on one line.

Do you still have an unanswered question? Please log in first to post your question.