binary_function_similarity
binary_function_similarity copied to clipboard
Compiled binaries ubuntu:18.04 env contruct fail
sudo add-apt-repository ppa:jonathonf/gcc-9.0
Cannot add PPA: 'ppa:~jonathonf/ubuntu/gcc-9.0'. The user named '~jonathonf' has no PPA named 'ubuntu/gcc-9.0'. This problem may be solved by
sudo add-apt-repository ppa:jonathonf/gcc
I have add new source to source.list and add apt-repo as /binary_function_similarity/Binaries/Compilation scripts/README.md said. However, when i run
sudo apt-get update
sudo apt-get install `cat os_install_packages/ubuntu1804/package_list`
lots of package unable to located.
E: Package 'clang-3.5' has no installation candidate E: Unable to locate package cpp-4.8-aarch64-linux-gnu E: Couldn't find any package by glob 'cpp-4.8-aarch64-linux-gnu' E: Couldn't find any package by regex 'cpp-4.8-aarch64-linux-gnu' E: Unable to locate package cpp-4.8-arm-linux-gnueabihf E: Couldn't find any package by glob 'cpp-4.8-arm-linux-gnueabihf' E: Couldn't find any package by regex 'cpp-4.8-arm-linux-gnueabihf' E: Unable to locate package cpp-9 E: Unable to locate package g++-4.8-aarch64-linux-gnu E: Couldn't find any package by glob 'g++-4.8-aarch64-linux-gnu' E: Couldn't find any package by regex 'g++-4.8-aarch64-linux-gnu' E: Unable to locate package g++-4.8-arm-linux-gnueabihf E: Couldn't find any package by glob 'g++-4.8-arm-linux-gnueabihf' E: Couldn't find any package by regex 'g++-4.8-arm-linux-gnueabihf'
Hi @NotTheEndOfTheWorld ,
First of all thanks for pointing out that ppa:jonathonf/gcc-9.0 does no longer work and that ppa:jonathonf/gcc is the correct one. We will update the documentation accordingly.
I have tried to reproduce this error but I haven't been able to. To be more specific, I have started a fresh install of Ubuntu 18.04 from an image of 18.04.3 (the one that was available on my disk at the moment).
First, I have upgraded all the packages:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
And rebooted the system afterwards.
Once done, I have followed the steps in https://github.com/Cisco-Talos/binary_function_similarity/tree/main/Binaries/Compilation%20scripts
The only problem I have seen is that this command (sudo add-apt-repository ppa:jonathonf/gcc
) triggers an update (sudo apt-get update) which will fail since the corresponding key for george-edison55's ppa has not been added yet.
If you add the key, and then run again:
sudo add-apt-repository ppa:jonathonf/gcc
Then the rest of the install process works just fine.
Could you also confirm what specific ISO you used to install Ubuntu 18.04?