如何在ubuntu 18.04中升级dtc版本?

Kap*_*wat 5 upgrade apt 18.04

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

sudo apt-get 安装设备树编译器

它说

device-tree-compiler 已经是最新版本(1.4.5-3)

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

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

kar*_*rel 1

  1. 在 AMD64 计算机上下载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
    
    Run Code Online (Sandbox Code Playgroud)