Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Unable to install jevois-sdk-dev 1.8 in ubuntu 17.10

0 votes

Hi,

Setup a new virtual box (5.2.8) on MacOS High Serria (10.13.3), guest extensions installed, with a clean install of ubuntu 17.10 to build jevois 1.8. VirtualBox seems to be working just fine.

Imported jevois keys, just fine. Output below. When I try to install jevois-sdk-dev  get the following error about a dependency. Not sure what I'm missing.

pi@jevoisvbox18:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DD24C027
[sudo] password for pi: 
Executing: /tmp/apt-key-gpghome.xwqwK3aiSf/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys DD24C027
gpg: key 003C8963C25E5DDA: public key "Laurent Itti <jevois.org@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
pi@jevoisvbox18:~$ sudo add-apt-repository "deb http://jevois.usc.edu/apt zesty main"
pi@jevoisvbox18:~$ sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu artful InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease [81.7 kB]   
Get:3 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB] 
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]    
Get:5 https://jevois.usc.edu/apt zesty InRelease [3,151 B]                     
Get:6 https://jevois.usc.edu/apt zesty/main i386 Packages [433 B]
Get:7 https://jevois.usc.edu/apt zesty/main amd64 Packages [2,001 B]
Fetched 238 kB in 1s (206 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
pi@jevoisvbox18:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

pi@jevoisvbox18:~$ sudo apt install jevois-sdk-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 jevois-sdk-dev : Depends: jevois-sdk (>= 1.6.0) but it is not going to be installed
                  Depends: gcc-4.7-arm-linux-gnueabi but it is not installable
E: Unable to correct problems, you have held broken packages.
pi@jevoisvbox18:~$ sudo apt install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version (4:7.2.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@jevoisvbox18:~$ 

Thanks for your help,

asked Apr 3, 2018 in Programmer Questions by bikeourplanet (120 points)

1 Answer

0 votes
Sorry you were a bit too early, I think and those packages were still being recompiled and updated. Please try again now. Since you have already added the JeVois debian repo, you would just do

sudo apt update

sudo apt install jevois-sdk-dev
answered Apr 3, 2018 by JeVois (46,580 points)
Now I'm getting this:

sudo apt install jevois-sdk-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 jevois-sdk-dev : Depends: jevois-sdk (>= 1.6.0) but it is not going to be installed
                  Depends: gcc-4.7-arm-linux-gnueabi but it is not installable
E: Unable to correct problems, you have held broken packages.

Tried over with a new VirtualBox and ended up the same error. gcc is installed as:

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3.2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)

Thanks for the help
odd, this is working fine here on ubuntu17.10 virtualbox

The message about a broken dependency for jevois-sdk 1.6.0 suggests that there still is something out of date in your setup, as everything is 1.8.0 now on the server and 1.6.0 is gone. Maybe a previous attempt to install the debian packages for 1.6.0 did break and left your vbox a mess. Are you sure you did indeed reinstall a fresh ubuntu17.10 vbox, or maybe you copied over a wrong version of your virtual disk image?

You may want to try this:

we added gcc-4.7-arm-linux-gnueabi to the jevois debian server. So this should work:

sudo apt update
sudo apt install gcc-4.7-arm-linux-gnueabi

if you still get the same error as above, it's because you need to cleanup that previously interrupted install. You may be able to purge the partially installed stuff using instructions like these:

http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/

but usually a fresh vbox install is the easiest/fastest.
Still no go.

I deleted all of the old virtual box installs.
Checked VirtualBox is Latest for MacOS (High Sierra) 10.13.3
Created a new Ubuntu 64bit using ubuntu-17.10.1-desktop-amd64.iso as recommended here: http://jevois.org/doc/Virtualbox.html

Let ubuntu software update run.
reboot

Used fix listed here (https://askubuntu.com/questions/985815/vboxclient-seamless-failed-to-start-stage-setting-guest-irq-filter-mask-err) for VirtualBox quest extension, I like copy and paste between machines. :-)
 1. apt install gcc make perl
 2. Mount and install virtual box extensions
 3. Reboot and verify copy and paste, all  good

The made sure basic development environment is installed

Install development tools
sudo apt-get install build-essential git
sudo apt-get install python-dev python-pip python-virtualenv python-numpy python-matplotlib
sudo pip install virtualenvwrapper
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
exit terminal, restart terminal to get virtual env setup
exit and re-enter terminal to verify

Install repository keys at outline here:

https://github.com/jevois/jevois/blob/master/INSTALL

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DD24C027
sudo add-apt-repository "deb http://jevois.usc.edu/apt zesty main"
sudo apt update
sudo apt upgrade

Tried to install gcc as recommended above:
sudo apt install gcc-4.7-arm-linux-gnueabi

Error:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-4.7-arm-linux-gnueabi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.7-arm-linux-gnueabi' has no installation candidate
(Jevois) pi@VBPI:~$

Tried sudo apt install jevois-sdk-dev Same issue.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 jevois-sdk-dev : Depends: jevois-sdk (>= 1.6.0) but it is not going to be installed
                  Depends: gcc-4.7-arm-linux-gnueabi but it is not installable
E: Unable to correct problems, you have held broken packages.
(Jevois) pi@VBPI:~$

Is it possible I'm doing something wrong with the base ubuntu image or are the keys wrong? Is there a way I can dump the dependancies to see what is wrong?

Sorry for long description, just wanted all. the steps accurately listed.

Thanks for your help, it must be something stupid that I'm. doing. :-)
argllll, I see now, sorry that INSTALL was written for zesty (17.04). You need to replace zesty by artful (17.10) when you do the add-apt-repository, please see https://jevois.usc.edu for the latest instructions for both xenial (16.04) and artful (17.10).

indeed, I also confirm that 1.6.0, which is the last version we built before zesty stopped being supported by Ubunty, has this dependency problem. I will remove zesty from our repo altogether as this is indeed very confusing, and will update INSTALL.

Please remove the repo you added for zesty (see, eg, https://askubuntu.com/questions/43345/how-to-remove-a-repository) and then add it again but for artful and you should be good.
...