当我尝试更新软件包时,我正在使用 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 版本
我应该怎么做才能获得最新版本?
方法如下:
- 在 ubuntu上下载device-tree-compiler_1.4.7-1_amd64.deb。
- 双击 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
我这里使用命令行安装方法: