如何在 ubuntu 18.04 中升级dtc版本

当我尝试更新软件包时,我正在使用 Ubuntu 18.04

sudo apt-get install device-tree-compiler

它说

device-tree-compiler is already the newest version (1.4.5-3)

但对于我的应用程序,它需要 1.4.6 的 dtc 版本

我应该怎么做才能获得最新版本?

方法如下:

  1. 在 ubuntu上下载device-tree-compiler_1.4.7-1_amd64.deb
  2. 双击 device-tree-compiler_1.4.7-1_amd64.deb 将其打开以在 Ubuntu 软件中安装,或打开终端并使用更改目录至cd包含 device-tree-compiler_1.4.7-1_amd64.deb 的目录并使用此安装命令:

sudo apt install ./device-tree-compiler_1.4.7-1_amd64.deb

我这里使用命令行安装方法:

猜你喜欢

转载自blog.csdn.net/weixin_39939185/article/details/130488410