在 Ubuntu 14.04 上将 tmux 从 1.8 升级到 1.9 [英] Ugrade tmux from 1.8 to 1.9 on Ubuntu 14.04

查看:23
本文介绍了在 Ubuntu 14.04 上将 tmux 从 1.8 升级到 1.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将 tmux 插件添加到我的 .tmux.conf 文件中,以发现其中一个插件(我认为是 tmux-copycat)需要 tmux 1.9.当我启动 tmux 时,我收到消息错误:Tmux 版本不受支持.请安装 tmux 1.9 或更高版本!".

I was just adding tmux plugins to my .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 unsupported. Please install tmux version 1.9 or greater!".

那么,在 Ubuntu 14.04 上将 tmux 1.8 升级到 1.9 的最佳方法是什么?

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

推荐答案

更新:由于新的 tmux 版本和包存储库中的更改,此答案已更新以显示如何安装 tmux 2.0(更好,没有理由再使用 1.9).

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

以下是更新空白"ubuntu 的步骤 - 仅限 14.04 版(其他 ubuntu 版本见下文):

Here are the steps to update "blank" ubuntu - version 14.04 only (see below for other ubuntu versions):

  1. sudo apt-get update
  2. sudo apt-get install -y python-software-properties software-properties-common
  3. sudo add-apt-repository -y ppa:pi-rho/dev
  4. sudo apt-get 更新
  5. sudo apt-get install -y tmux=2.0-1~ppa1~t
  6. 现在如果你执行 tmux -V 它应该显示 tmux 2.0 这是一个很好的 tmux 插件版本
  1. sudo apt-get update
  2. sudo apt-get install -y python-software-properties software-properties-common
  3. sudo add-apt-repository -y ppa:pi-rho/dev
  4. sudo apt-get update
  5. sudo apt-get install -y tmux=2.0-1~ppa1~t
  6. now if you do tmux -V it should show tmux 2.0 which is a good version for tmux plugins

我在一个新的 digitalocean droplet 上验证了上述步骤.

I verified the above steps on a new digitalocean droplet.

基本上,它是添加 pi-rho/dev 存储库,更新然后安装 tmux从那里开始.

Basically, it's adding the pi-rho/dev repository, updating and then installing tmux from there.

如果你有另一个 ubuntu 版本,你可能想从同一个 repo 安装不同的 tmux 版本.所以:

If you have another ubuntu version you might want to install a different tmux version from the same repo. So:

  • ubuntu 12.04 (Precise Pangolin) step 5:sudo apt-get install -y tmux=1.9a-1~ppa1~p(安装tmux 1.9,无包对于 tmux 2.0 还没有)
  • ubuntu 13.10 (Saucy Salamander) step 5:sudo apt-get install -y tmux=1.9a-1~ppa1~s(安装tmux 1.9,无包对于 tmux 2.0 还没有)
  • ubuntu 14.10 (Utopic Unicorn) 第 5 步:sudo apt-get install -y tmux=2.0-1~ppa1~u
  • ubuntu 15.04 (Vivid Vervet) 第 5 步:sudo apt-get install -y tmux=2.0-1~ppa1~v
  • ubuntu 12.04 (Precise Pangolin) step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~p (installs tmux 1.9, no package for tmux 2.0 yet)
  • ubuntu 13.10 (Saucy Salamander) step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~s (installs tmux 1.9, no package for tmux 2.0 yet)
  • ubuntu 14.10 (Utopic 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

这篇关于在 Ubuntu 14.04 上将 tmux 从 1.8 升级到 1.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆