I tried to use this method to upgrade the DTC version.
$ sudo apt install ./device-tree-compiler_1.4.7-1_amd64.deb
The result is disappointing:
Reading package lists... Done Building dependency tree
Reading state information... Done
Note, selecting 'device-tree-compiler' instead of './device-tree-compiler_1.4.7-1_amd64.deb'
device-tree-compiler is already the newest version (1.4.7-1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
$ dtc -v
Version: DTC 1.4.0-gf345d9e4
I tried waltinator's suggestion,
$ sudo dpkg --install ./device-tree-compiler_1.4.7-1_amd64.deb
(Reading database ... 178854 files and directories currently installed.)
Preparing to unpack .../device-tree-compiler_1.4.7-1_amd64.deb ...
Unpacking device-tree-compiler (1.4.7-1) over (1.4.7-1) ...
Setting up device-tree-compiler (1.4.7-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
But the version of dtc still not upgraded.
$ dtc -v
Version: DTC 1.4.0-gf345d9e4
However, when I use this method to view the dtc version, the result is:
dpkg -s device-tree-compiler | grep '^Version:'
Version: 1.4.7-1
Why is this happening? What could be the issue?
dtc
version found in your $PATH may not be the version you want? do you have multiple versions installed? Please provide the link to Ubuntu in your question. – guiverc Jul 12 '19 at 01:31type -a dtc
– steeldriver Jul 12 '19 at 07:35