I don't have a noble vm up and running yet, has this issue been
addressed yet?

https://bugs.launchpad.net/ubuntu/+source/bpftrace/+bug/1969625
https://github.com/bpftrace/bpftrace/issues/954

It's pretty annoying to need to configure and install a ddeb package
just to use these binaries. At least that was required on my 22.04 LTS
machine:

sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 1 $ 
sudo apt install bpftrace
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libclang1-11
The following NEW packages will be installed:
  bpftrace libclang1-11
0 upgraded, 2 newly installed, 0 to remove and 61 not upgraded.
Need to get 0 B/6,682 kB of archives.
After this operation, 27.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 file:/srv/mirror/ubuntu jammy/universe amd64 libclang1-11 amd64 
1:11.1.0-6 [6,053 kB]
Get:2 file:/srv/mirror/ubuntu jammy/universe amd64 bpftrace amd64 0.14.0-1 [628 
kB]
Selecting previously unselected package libclang1-11.
(Reading database ... 156956 files and directories currently installed.)
Preparing to unpack .../libclang1-11_11.1.0-6_amd64.deb ...
Unpacking libclang1-11 (1:11.1.0-6) ...
Selecting previously unselected package bpftrace.
Preparing to unpack .../bpftrace_0.14.0-1_amd64.deb ...
Unpacking bpftrace (0.14.0-1) ...
Setting up libclang1-11 (1:11.1.0-6) ...
Setting up bpftrace (0.14.0-1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 9s $ 
sudo opensnoop.bt
Attaching 6 probes...
ERROR: Could not resolve symbol: /proc/self/exe:BEGIN_trigger
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 255 $ 
sudo execsnoop.bt 
Attaching 3 probes...
ERROR: Could not resolve symbol: /proc/self/exe:BEGIN_trigger
[...]
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 255 $ 
sudo apt install bpftrace-dbgsym
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bpftrace-dbgsym
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 100 $ 
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe 
multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe 
multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted 
universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list
deb http://ddebs.ubuntu.com jammy main restricted universe multiverse
deb http://ddebs.ubuntu.com jammy-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com jammy-proposed main restricted universe multiverse
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 $ sudo 
apt update && sudo apt install bpftrace-dbgsym
Get:1 file:/srv/mirror/ubuntu jammy InRelease [270 kB]
Get:1 file:/srv/mirror/ubuntu jammy InRelease [270 kB]
Get:2 file:/srv/mirror/ubuntu jammy-updates InRelease [119 kB]                  
                 
Get:3 file:/srv/mirror/ubuntu jammy-security InRelease [110 kB]                 
                 
Get:2 file:/srv/mirror/ubuntu jammy-updates InRelease [119 kB]                  
                      
Get:3 file:/srv/mirror/ubuntu jammy-security InRelease [110 kB]                 
                 
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]       
                 
Get:5 file:/srv/mirror/ubuntu jammy-updates/main Sources [475 kB]               
                                   
Get:6 file:/srv/mirror/ubuntu jammy-updates/main amd64 Packages [1,413 kB]      
                                                         
Get:7 file:/srv/mirror/ubuntu jammy-updates/main i386 Packages [576 kB]         
                                                         
Get:8 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7,553 
B]                                                         
Get:9 http://ddebs.ubuntu.com jammy InRelease [41.3 kB]    
Get:10 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7,456 B]
Get:11 http://ddebs.ubuntu.com jammy-updates InRelease [41.3 kB]
Get:12 file:/srv/mirror/ubuntu jammy-updates amd64 Contents (deb) [88.0 MB]
Get:13 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease 
[7,450 B]      
Get:14 http://ddebs.ubuntu.com jammy-proposed InRelease [41.4 kB]               
          
Err:9 http://ddebs.ubuntu.com jammy InRelease                                   
        
  The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY C8CAB6595FDFF622
Get:15 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7,449 
B]       
Get:16 file:/srv/mirror/ubuntu jammy-updates i386 Contents (deb) [40.8 MB]
Get:17 file:/srv/mirror/ubuntu jammy-security/main Sources [250 kB]
Get:18 file:/srv/mirror/ubuntu jammy-security/restricted Sources [53.6 kB]
Get:19 file:/srv/mirror/ubuntu jammy-security/multiverse Sources [10.5 kB]
Get:20 file:/srv/mirror/ubuntu jammy-security/main amd64 Packages [1,194 kB]
Get:21 file:/srv/mirror/ubuntu jammy-security/main i386 Packages [410 kB]
Err:11 http://ddebs.ubuntu.com jammy-updates InRelease
  The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY C8CAB6595FDFF622
Err:14 http://ddebs.ubuntu.com jammy-proposed InRelease
  The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY C8CAB6595FDFF622
Get:22 file:/srv/mirror/ubuntu jammy-security amd64 Contents (deb) [84.4 MB]
Get:23 file:/srv/mirror/ubuntu jammy-security i386 Contents (deb) [38.6 MB]
Get:24 file:/srv/mirror/ubuntu jammy-security/restricted i386 Packages [33.7 kB]
Get:25 file:/srv/mirror/ubuntu jammy-security/restricted amd64 Packages [1,464 
kB]
Get:26 file:/srv/mirror/ubuntu jammy-security/restricted Translation-en [241 kB]
Get:27 file:/srv/mirror/ubuntu jammy-security/multiverse amd64 Packages [37.1 
kB]
Get:28 file:/srv/mirror/ubuntu jammy-security/universe i386 Packages [595 kB]
Get:29 file:/srv/mirror/ubuntu jammy-security/universe amd64 Packages [845 kB]
Reading package lists... Done                                                   
                                                                                
           
W: GPG error: http://ddebs.ubuntu.com jammy InRelease: The following signatures 
couldn't be verified because the public key is not available: NO_PUBKEY 
C8CAB6595FDFF622
E: The repository 'http://ddebs.ubuntu.com jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore 
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
W: GPG error: http://ddebs.ubuntu.com jammy-updates InRelease: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY C8CAB6595FDFF622
E: The repository 'http://ddebs.ubuntu.com jammy-updates InRelease' is not 
signed.
N: Updating from such a repository can't be done securely, and is therefore 
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
W: GPG error: http://ddebs.ubuntu.com jammy-proposed InRelease: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY C8CAB6595FDFF622
E: The repository 'http://ddebs.ubuntu.com jammy-proposed InRelease' is not 
signed.
N: Updating from such a repository can't be done securely, and is therefore 
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 42s 100 
$ sudo apt install ubuntu-dbgsym-keyring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  ubuntu-dbgsym-keyring
0 upgraded, 1 newly installed, 0 to remove and 61 not upgraded.
Need to get 0 B/6,876 B of archives.
After this operation, 23.6 kB of additional disk space will be used.
Get:1 file:/srv/mirror/ubuntu jammy/main amd64 ubuntu-dbgsym-keyring all 
2021.03.26 [6,876 B]
Selecting previously unselected package ubuntu-dbgsym-keyring.
(Reading database ... 157075 files and directories currently installed.)
Preparing to unpack .../ubuntu-dbgsym-keyring_2021.03.26_all.deb ...
Unpacking ubuntu-dbgsym-keyring (2021.03.26) ...
Setting up ubuntu-dbgsym-keyring (2021.03.26) ...
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 6s $ 
sudo apt update && sudo apt install bpftrace-dbgsym
Get:1 file:/srv/mirror/ubuntu jammy InRelease [270 kB]
Get:2 file:/srv/mirror/ubuntu jammy-updates InRelease [119 kB]
Get:1 file:/srv/mirror/ubuntu jammy InRelease [270 kB]                          
                                                                   
Get:3 file:/srv/mirror/ubuntu jammy-security InRelease [110 kB]                 
                                                                   
Get:2 file:/srv/mirror/ubuntu jammy-updates InRelease [119 kB]                  
                                                                                
           
Get:3 file:/srv/mirror/ubuntu jammy-security InRelease [110 kB]                 
                                                                   
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                
                                                                   
Get:5 http://ddebs.ubuntu.com jammy InRelease [41.3 kB]                         
              
Get:6 http://ddebs.ubuntu.com jammy-updates InRelease [41.3 kB]                 
    
Get:7 http://ddebs.ubuntu.com jammy-proposed InRelease [41.4 kB]                
    
Hit:8 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease
Hit:9 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease
Get:10 http://ddebs.ubuntu.com jammy/main i386 Packages [322 kB]
Hit:11 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease
Hit:12 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease
Get:13 http://ddebs.ubuntu.com jammy/main amd64 Packages [558 kB]
Get:14 http://ddebs.ubuntu.com jammy/restricted i386 Packages [716 B]
Get:15 http://ddebs.ubuntu.com jammy/universe amd64 Packages [4,944 kB]
Get:16 http://ddebs.ubuntu.com jammy/universe i386 Packages [432 kB]
Get:17 http://ddebs.ubuntu.com jammy/multiverse i386 Packages [2,892 B]
Get:18 http://ddebs.ubuntu.com jammy/multiverse amd64 Packages [83.5 kB]
Get:19 http://ddebs.ubuntu.com jammy-updates/main amd64 Packages [352 kB]
Get:20 http://ddebs.ubuntu.com jammy-updates/main i386 Packages [133 kB]
Get:21 http://ddebs.ubuntu.com jammy-updates/restricted amd64 Packages [888 B]
Get:22 http://ddebs.ubuntu.com jammy-updates/universe i386 Packages [92.7 kB]
Get:23 http://ddebs.ubuntu.com jammy-updates/universe amd64 Packages [246 kB]
Get:24 http://ddebs.ubuntu.com jammy-updates/multiverse amd64 Packages [3,352 B]
Get:25 http://ddebs.ubuntu.com jammy-updates/multiverse i386 Packages [712 B]
Get:26 http://ddebs.ubuntu.com jammy-proposed/main amd64 Packages [62.1 kB]
Get:27 http://ddebs.ubuntu.com jammy-proposed/main i386 Packages [25.2 kB]
Get:28 http://ddebs.ubuntu.com jammy-proposed/restricted amd64 Packages [668 B]
Ign:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages
Ign:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages
Ign:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages
Ign:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages
Ign:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages
Ign:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages           
                                                                                
           
Ign:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages            
                                                                                
           
Ign:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages           
                                                                                
           
Ign:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages            
                                                                                
           
Ign:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages           
                                                                                
           
Err:29 http://ddebs.ubuntu.com jammy-proposed/universe i386 Packages            
                                                                                
           
  429  Too Many Requests [IP: 91.189.91.49 80]
Err:30 http://ddebs.ubuntu.com jammy-proposed/universe amd64 Packages           
                                                                                
           
  429  Too Many Requests [IP: 91.189.91.49 80]
Fetched 7,261 kB in 10s (702 kB/s)                                              
                                                                                
           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
61 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch 
http://ddebs.ubuntu.com/dists/jammy-proposed/universe/binary-i386/Packages  429 
 Too Many Requests [IP: 91.189.91.49 80]
W: Failed to fetch 
http://ddebs.ubuntu.com/dists/jammy-proposed/universe/binary-amd64/Packages  
429  Too Many Requests [IP: 91.189.91.49 80]
W: Some index files failed to download. They have been ignored, or old ones 
used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  bpftrace-dbgsym
0 upgraded, 1 newly installed, 0 to remove and 61 not upgraded.
Need to get 14.6 MB of archives.
After this operation, 15.4 MB of additional disk space will be used.
Get:1 http://ddebs.ubuntu.com jammy/universe amd64 bpftrace-dbgsym amd64 
0.14.0-1 [14.6 MB]
Fetched 14.6 MB in 2s (6,755 kB/s)          
Selecting previously unselected package bpftrace-dbgsym.
(Reading database ... 157081 files and directories currently installed.)
Preparing to unpack .../bpftrace-dbgsym_0.14.0-1_amd64.ddeb ...
Unpacking bpftrace-dbgsym (0.14.0-1) ...
Setting up bpftrace-dbgsym (0.14.0-1) ...
sarnold@wopr:/newsrv/trees/ubuntu/main/s/systemd/systemd_252.5-2ubuntu3 25s $ 
sudo execsnoop.bt 
Attaching 3 probes...
TIME(ms)   PID   ARGS
8678       602402 screen -ls
8679       602403 grep -c [Dd]etach[^)]*)$
8687       602405 tmux list-sessions
[...]

** Bug watch added: github.com/bpftrace/bpftrace/issues #954
   https://github.com/bpftrace/bpftrace/issues/954

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2052809

Title:
  [MIR] bpftrace

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpftrace/+bug/2052809/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to