rin67630
Posts: 121
Joined: Fri Mar 04, 2016 10:15 am

Where can i find a libusb-dev?

Tue May 08, 2018 4:20 pm

Upon attempting to install libusb-dev on a fresh upgraded raspbian stretch, I got this message:

Code: Select all

$ sudo apt-get install libusb-devReading package lists... Done
Building dependency tree       
Reading state information... Done
Package libusb-dev 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
However the following packages replace it:
  libusb-0.1-4
I have now made several attempts to install libusb[any version number]-dev but was never successful.
Compiling always breaks with

Code: Select all

dl161s.c:11:17: fatal error: usb.h: No such file or directory
 #include <usb.h>
                 ^
compilation terminated.
Has someone got a clue?
Last edited by rin67630 on Tue May 08, 2018 7:43 pm, edited 1 time in total.

User avatar
topguy
Posts: 4550
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Where can i find a libusb-dev?

Tue May 08, 2018 6:24 pm

Do you plan to use libusb0.1.4 or libusb1.0 or doesnt it matter ?

If you install the developer package for 0.1.4 you should find <usb.h>
https://packages.debian.org/stretch/arm ... v/filelist

But if you installed the other package for version 1.0 then you have to use <libusb-1.0/libusb.h>
https://packages.debian.org/stretch/arm ... v/filelist

rin67630
Posts: 121
Joined: Fri Mar 04, 2016 10:15 am

Re: Where can i find a libusb-dev?

Tue May 08, 2018 7:41 pm

Tank you for your reply. I am currently tying to follow installation instructions, so im not aware of the dependencies.
I can't install libusb-1.0-0-dev either, same messages...

Is my /etc/Apt/sources.list defective?

Code: Select all

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free$
it is a bit strange, I can't install synaptic neither...

Code: Select all

$ sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package synaptic 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 'synaptic' has no installation candidate
I must have got a bug elsewhere...

User avatar
Paeryn
Posts: 2014
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Where can i find a libusb-dev?

Tue May 08, 2018 8:35 pm

Did you remember to do a

Code: Select all

sudo apt-get update
to update apt's database of packages before trying to install?
She who travels light — forgot something.

rin67630
Posts: 121
Joined: Fri Mar 04, 2016 10:15 am

Re: Where can i find a libusb-dev?

Tue May 08, 2018 8:38 pm

Paeryn wrote:
Tue May 08, 2018 8:35 pm
Did you remember to do a

Code: Select all

sudo apt-get update
to update apt's database of packages before trying to install?
Yes, I forgot to mention:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get distr-upgrade

User avatar
rpdom
Posts: 12582
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Where can i find a libusb-dev?

Tue May 08, 2018 8:46 pm

rin67630 wrote:
Tue May 08, 2018 8:38 pm
Paeryn wrote:
Tue May 08, 2018 8:35 pm
Did you remember to do a

Code: Select all

sudo apt-get update
to update apt's database of packages before trying to install?
Yes, I forgot to mention:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get distr-upgrade
Try

Code: Select all

sudo apt-get update
sudo apt-get install libusb-dev

User avatar
Paeryn
Posts: 2014
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Where can i find a libusb-dev?

Tue May 08, 2018 9:46 pm

I wonder if the package list is corrupt? What do you get when you do :-

Code: Select all

[email protected]:~/share $ ls -lh /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
-rw-r--r-- 1 root root 59M May  6 17:34 /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
If the size is showing as less than 59M (or thereabouts) then the list could be corrupt. apt-get update downloads these lists so it should be safe to delete (or move it to another directory just in case) it and redo the update to get a fresh copy.
She who travels light — forgot something.

rin67630
Posts: 121
Joined: Fri Mar 04, 2016 10:15 am

Re: Where can i find a libusb-dev? [solved after reinstall]

Wed May 09, 2018 2:47 am

I just lost patience with myself and reinstalled from noobs.
It works now.
Sorry for the disturbance.

rin67630
Posts: 121
Joined: Fri Mar 04, 2016 10:15 am

Re: Where can i find a libusb-dev? Not really solved.

Thu May 10, 2018 2:56 pm

Maybe I have leveraged a bug.

After a fresh reinstall from noobs, I could run

Code: Select all

sudo apt-get install libusb-devlibusb-de
But after I ran my usual cleanup of default packages, that are useless to me:

Code: Select all

sudo apt-get purge wolfram-engine 
sudo apt-get purge libreoffice 
sudo apt-get purge scratch
sudo apt-get purge sonic-pi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
I got the same error again:

Code: Select all

$ sudo apt-get install libusb-devReading package lists... Done
Building dependency tree       
Reading state information... Done
Package libusb-dev 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
However the following packages replace it:
  libusb-0.1-4
The usual update/upgrade procedure does not help:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
The repos from update seem ok, isn't it?

Code: Select all

Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]        
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:4 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [30.8 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.8 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [95.2 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian stretch/rpi armhf Packages [1,360 B]
It seems that apt-get runs weird.
I can't reinstall what I just purged:
sudo apt-get install wolfram-engine now throws a bunch of errors:

Code: Select all

sudo apt-get install wolfram-engine
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:
 wolfram-engine : Depends: coinor-libipopt1v5 but it is not installable
                  Depends: libraw15 but it is not installable
                  Depends: libgmime-2.6-0 but it is not installable
                  Depends: libexiv2-14 but it is not installable
E: Unable to correct problems, you have held broken packages.
Has anyone got a clue?

yepecece
Posts: 1
Joined: Sun Jun 17, 2018 7:45 am

Re: Where can i find a libusb-dev?

Sun Jun 17, 2018 7:46 am

Hi,

I am having the exact same problem.
Trying to install "libusb-dev" and get the same error and also problems when reinstalling Wolfram.

Did you find a solution?

Thanks

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 11 guests