Ugrade tmux from 1.8 to 1.9 on Ubuntu 14.04

I just added tmux plugins to the .tmux.conf file to find out that one of the plugins (tmux-copycat, I think) requires tmux 1.9. When I start tmux, I get the message "Error: Tmux version is not supported. Install tmux version 1.9 or higher!".

So what is the best way to upgrade tmux 1.8 to 1.9 on Ubuntu 14.04?

+56
Sep 19 '14 at 19:18
source share
3 answers

Update : due to the new version of tmux and changes in the package repository, this answer is updated to show how to install tmux 2.0 (which is better, for no reason use 1.9 more).

Below are the steps to upgrade only the "empty" ubuntu - version 14.04 (see below for other versions of ubuntu):

  • sudo apt-get update
  • sudo apt-get install -y python-software-properties software-properties-common
  • sudo add-apt-repository -y ppa:pi-rho/dev
  • sudo apt-get update
  • sudo apt-get install -y tmux=2.0-1~ppa1~t
  • now if you do tmux -V it should show tmux 2.0 , which is a good version for tmux plugins

I checked the steps above on a new drop with the digital ocean.

Basically, it adds the pi-rho / dev repository , updates and then installs tmux from there.

If you have a different version of ubuntu, you can install a different version of tmux from the same repo. So:

  • ubuntu 12.04 (Fine Pangolin) step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~p (installs tmux 1.9 , a package for tmux 2.0 now)
  • ubuntu 13.10 (Saucy Salamander) Step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~s (installs tmux 1.9 , a package for tmux 2.0 now)
  • ubuntu 14.10 (Utopian unicorn) Step 5: sudo apt-get install -y tmux=2.0-1~ppa1~u
  • ubuntu 15.04 (Vivid Vervet) Step 5: sudo apt-get install -y tmux=2.0-1~ppa1~v
+131
Sep 20 '14 at 19:27
source share

If you do not want to add PPA, you can simply create it from the source. He explained in README on the tmux GitHub page:

To create tmux from a release tarball, run:

 $ ./configure && make $ sudo make install 

You may need to install additional packages to create it. On Ubuntu, I needed to install these packages before they were successfully created:

 exuberant-ctags cmake libevent-dev libncurses5-dev 
+8
Jun 25 '15 at 15:22
source share

Another way to do # 3 above (especially if you use a corporate proxy that can break ppa).

 sudo add-apt-repository -y http://ppa.launchpad.net/pi-rho/dev/ubuntu 

If using a tool such as Artifactory act as a proxy caching server

 sudo add-apt-repository -y http://my.artifactory.site/ppa.launchpad.net/pi-rho/dev/ubuntu 

or

 sudo add-apt-repository -y http://my.domain/artifactory/ppa.launchpad.net/pi-rho/dev/ubuntu 
+3
Apr 21 '15 at 17:21
source share



All Articles