Failed to install driver for Ubuntu

Discussion forum for the Picoscope 6 Linux software
Post Reply
lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Failed to install driver for Ubuntu

Post by lxl »

I failed to install the driver in Ubuntu

wget -O - https://labs.picotech.com/debian/dists/ ... se.gpg.key | sudo apt-key add -

Prompt GPG: no valid OpenPGP data found.

I don't know how to solve this problem. The Ubuntu system page can download this file

Please help me

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

Can you try adding the no-check-certificate option

Code: Select all

wget --no-check-certificate -O - https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -
Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

After the above command is executed, the result is the same

Is there any other way?

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

Identify if it is the wget or the apt-key part of the command that is failing by running them independently.
Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

It seems right for me to break down the steps. Please take a look for me

sudo apt-get update

There seems to be something wrong
Attachments
1625014075(1).png

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

because you have posted a picture I can't use google translate to try and understand the message, so not sure whether you just need to issue the command

sudo apt-get install picoscope
Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

Here are my orders and replies
Please take a look for me

lxl@lxl-virtual-machine:~$ sudo bash -c 'echo "https://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list'
[sudo] lxl 的密码:
lxl@lxl-virtual-machine:~$ wget -o - https://labs.picotech.com/debian/dists/ ... se.gpg.key | sudo apt-key add -
gpg: 找不到有效的 OpenPGP 数据。
lxl@lxl-virtual-machine:~$ sudo apt-key add Release.gpg.key
OK
lxl@lxl-virtual-machine:~$ sudo apt-get update
E: 软件源列表 /etc/apt/sources.list.d/picoscope.list 第 1 行中的类别 “https://labs.picotech.com/debian/” 无法识别
E: 无法读取源列表。

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

Your sources file looks as if it may be wrong, possibly the pipe commands are not working correctly on your system. I would manually edit

Code: Select all

/etc/apt/sources.list.d/picoscope.list
so that it only contains the line

Code: Select all

deb https://labs.picotech.com/debian/ picoscope main
then you should be able to run

Code: Select all

sudo apt-get update
followed by

Code: Select all

sudo apt-get install picoscope
Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

Thank you very much, Martyn

Ubuntu 18.04.5 driver has been installed successfully,

Is there a sample program to refer to? I use C + + language

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

Is there no QT sample program?

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

Hello Martyn

I don't know how to use the demo you gave me,

Can you tell me under what environment this demo is compiled and used

I want to build the environment quickly

Is there a sample program for QT?

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

We don't have any QT based examples.

The code we provide can built from the command line on Linux using the standard gcc tools using the build files included with the examples. Alternatively just use the source code and add it to your own QT project.
Martyn
Technical Support Manager

lxl
Newbie
Posts: 0
Joined: Tue Jun 29, 2021 1:38 am

Re: Failed to install driver for Ubuntu

Post by lxl »

Hi, Martyn. I still need your help

I have a lot of problems using the C examples you gave me on the Ubuntu system

I loaded the C file into QT, added the picostatus. H and ps3000aapi. H files, and then copied libps3000a. So, libps3000a. So. 2 and libps3000a. So. 2.0.0 to the project directory, but the compiler was still unable to find the library function of Pico

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Failed to install driver for Ubuntu

Post by Martyn »

Is this your first time with QT or have you written, built and run other applications?
Are you using QT Creator and QT 5 as default? have you installed the build essentials?

You should not need to copy the libs to the project directory, they should be available from the installation directory.
Martyn
Technical Support Manager

Post Reply