无法将Bazel更新到最新版本

问题描述:

我有旧版本的Bazel,它不符合构建TensorFlow C++ API的要求。以下是$ bazel version的回报无法将Bazel更新到最新版本

Build label: 0.3.2 
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar 
Build time: Fri Oct 7 17:25:10 2016 (1475861110) 
Build timestamp: 1475861110 
Build timestamp as int: 1475861110 

但是,当我试图升级它时,我没有任何新的东西。

$ sudo apt-get upgrade Bazel 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Calculating upgrade... Done 
bazel is already the newest version. 
The following packages were automatically installed and are no longer required: 
    fonts-font-awesome ipython-notebook-common libbonobo2-0 libbonobo2-common 
    libgconf2-4 libgnome2-0 libgnome2-bin libgnome2-common libgnomevfs2-0 
    libgnomevfs2-common libidl-common libidl0 libjs-highlight libjs-jquery-ui 
    libjs-marked liborbit-2-0 liborbit2 
Use 'apt-get autoremove' to remove them. 
The following packages have been kept back: 
    ffmpeg gir1.2-rb-3.0 gir1.2-totem-1.0 libavcodec-dev libavcodec54 
    libavformat-dev libavformat54 libavutil-dev libavutil52 libcdt5 libcgraph6 
    libcuda1-367 libgraphviz-dev libgvc6 libgvpr2 libpathplan4 
    librhythmbox-core8 libswscale-dev libswscale2 libtotem-plparser18 libva1 
    libxdot4 nvidia-367 nvidia-367-dev nvidia-opencl-icd-367 rhythmbox 
    rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder 
    rhythmbox-plugin-magnatune rhythmbox-plugins totem totem-common 
    totem-mozilla totem-plugins 
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded. 

/etc/apt/sources.list的内容如下。

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse 
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse 
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse 

我想将安装升级到版本0.4.5或更高版本。有人可以帮忙吗?

+0

嗨,你有没有尝试做'apt-get的更新'之前?如果它不起作用,你可以发布你的/etc/apt/sources.list的内容吗? –

+0

@ DamienMartin-guillerez是的,它没有帮助。内容被更新。 –

来源列表中不包括巴泽尔库,请参阅如何添加它on our installation instructions.

一旦你做到了,你应该能够使用apt-get update && apt-get upgrade bazel