Discussion forum for the Picoscope 6 Linux software
lxl
Newbie
Posts: 0 Joined: Tue Jun 29, 2021 1:38 am
Post
by lxl » Tue Jun 29, 2021 2:18 am
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
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Tue Jun 29, 2021 5:56 am
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
Post
by lxl » Tue Jun 29, 2021 8:22 am
After the above command is executed, the result is the same
Is there any other way?
Martyn
Site Admin
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Tue Jun 29, 2021 8:40 am
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
Post
by lxl » Wed Jun 30, 2021 12:51 am
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
Martyn
Site Admin
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Wed Jun 30, 2021 5:49 am
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
Post
by lxl » Wed Jun 30, 2021 6:02 am
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
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Wed Jun 30, 2021 7:02 am
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
followed by
Martyn
Technical Support Manager
lxl
Newbie
Posts: 0 Joined: Tue Jun 29, 2021 1:38 am
Post
by lxl » Wed Jun 30, 2021 8:03 am
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
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Wed Jun 30, 2021 8:21 am
Martyn
Technical Support Manager
lxl
Newbie
Posts: 0 Joined: Tue Jun 29, 2021 1:38 am
Post
by lxl » Wed Jun 30, 2021 8:28 am
Is there no QT sample program?
lxl
Newbie
Posts: 0 Joined: Tue Jun 29, 2021 1:38 am
Post
by lxl » Thu Jul 01, 2021 6:42 am
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
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Thu Jul 01, 2021 7:58 am
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
Post
by lxl » Tue Jul 06, 2021 1:36 am
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
Posts: 4501 Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots
Post
by Martyn » Tue Jul 06, 2021 5:00 am
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