FoRUmS

[Solved] Failed to install NDK/Caffe prerequisites  

Page 2 / 2
 

Memi
 Memi
(@memi)
Active Member
Joined: 2 years ago
Posts: 11
13/08/2022 6:55 am  

Hi @paulbuxton;

 we installed ubuntu 20.04 on a newly formatted hardware. The warnings we had for 22.04 continued to appear as in the attachment. Any ideas how to fix this problem?

thanks

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://tr.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
W: Skipping acquire of configured file 'bionic-updates/main/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/dep11/[email protected]' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bionic-updates/main/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component 'bionic-updates/main' (component misspelt in sources.list?)


gigapack liked
ReplyQuote
Memi
 Memi
(@memi)
Active Member
Joined: 2 years ago
Posts: 11
13/08/2022 11:40 am  

@luispimo This fixed the problems both for ubuntu 20.04 and 22.04. Thank you.

"Hi @hight 

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)

Regards

Luis"

 

This post was modified 2 months ago by Memi

ReplyQuote
Memi
 Memi
(@memi)
Active Member
Joined: 2 years ago
Posts: 11
15/08/2022 4:28 pm  

hi

Towards the end of ncsdk installation on Ubuntu 20.04  I am getting the verification results with 3 failures and 3 SUCCESS as in Fig 1.

When tried again I could catch an error message as in Fig 2. Finally it terminates with '1' error, as in Fig 3. I have been trying to identify and fix the source of the problem, but no hope so far. Any suggestions will be most appreciated.

Thank you.


ReplyQuote
paulbuxton
(@paulbuxton)
Member Moderator
Joined: 7 months ago
Posts: 13
16/08/2022 9:05 am  

Hi, looking into this. There has been an issue recently where some packages have changed dependencies, I am not usre if this is the cause.


RCWO liked
ReplyQuote
paulbuxton
(@paulbuxton)
Member Moderator
Joined: 7 months ago
Posts: 13
16/08/2022 11:41 am  

Hi,

I have going through the setup I see that there is a problem with protobuf which will get installed during the process. Re-going through the setup process on Ubuntu 20 I was able to get a clean install using the following steps before running the ncsdk installer

apt-get update
apt install libjpeg-dev python3 python3-pip git curl cmake 
pip install protobuf==3.20.0
apt install virtualenv caffe-cpu


ReplyQuote
Memi
 Memi
(@memi)
Active Member
Joined: 2 years ago
Posts: 11
16/08/2022 7:30 pm  

@paulbuxton 

I will try this* on a clean installation of 20.04. In the meantime we installed ubuntu 18.04, on a 12 core machine with an over kill RAM size. The installation was flawless and very fast. 

I will retry later with 20.04 on the smaller scale machine with your suggestions, just to pin point the solution to the problem. 

Many thanks. 

 

*

apt-get update apt install libjpeg-dev python3 python3-pip git curl

cmake pip install protobuf==3.20.0 apt install virtualenv caffe-cpu


ReplyQuote
luispimo
(@luispimo)
Member Moderator
Joined: 2 years ago
Posts: 16
24/08/2022 4:04 pm  

@memi 

I have tested Paul's solution and it works ok for Ubuntu 20.04.4

https://university.imgtec.com/forums/edge-ai/problem-installing-nc-sdk/#post-1201

Regards


RCWO liked
ReplyQuote
Page 2 / 2