[Solved] Failed to install NDK/Caffe prerequisites
Linux Host: Ubuntu 20.04.1, Linux 5.13 kernel
According 3.1.3 Software prerequisities installation, during the installaton of NDK/Caffe prerequsities "python3.x", the following errors occurred.
sudo apt-get update sudo apt install build-essential sudo apt-get install virtualenv sudo apt-get install python3.x stoped!
E:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/p/python-xdo/python3-xdo_0.4-2_all.deb connection failed
E:Unabile to fetch some archives, maybe run apt-get update or try with --fix-missing?
I am not sure if the "sources.list" is causing this problem.
The sources.list is default.
BTW, the native compilation tools (such as build-essential) all can be installed successfully.
I am looking into this now. So far I haven't been able to reproduce it.
It is possible this is a transient problem with the repository. Can you retry?
I am able to fetch the package manually using
Are you able to fetch it in this way?
I see from your profile and the URL of the package that you are in China, I think we have sometimes seen issues with repositories not being accessible from machines in China. I am contacting some of our colleagues in China to see if they see this problem and if they have a workaround.
If you are still unable to run the command
sudo apt-get install python3.x
could you attach a copy of your /etc/apt/sources.list so that I can try and reproduce the problem here.
Apparently it seems an issue related to apt/sources.list.
It is possible that the source.list is corrupted.
You can try the following:
1. Remove the file: sudo rm /etc/apt/sources.list
2. Create an empty one: sudo touch /etc/apt/sources.list
3. Restore the default settings using "Software & Updates" tool (see attached image)
I have changed sources.list (/etc/apt/sources.list). The problem about fetch has been resolved.
All packages can be installed successfully, including "native compilation tools","NDK/Caffe prerequisites","Tensorflow","Cross-compilation".
The sources.list I used in HOST is local source (By modify through vim). Also you can try to change it by the method of @luispimo
I am still having trouble with passing the TensorFlow to the CAFFE to IMG-NNVM conversion tests. Below is a screenshot of the error I am getting.
Your help is truly appreciated.
Yasmine Abu Adla
That looks like caffe was not successfully installed during the setup process. The failure to install it is likely visible further up the console log. If you could either scroll up to show that, or run the installer capturing the console output to a file it would be helpful. You can do that using the tee command as shown below
devtools.run 2>&1 |tee /tmp/output.txt