You are not logged in.

#1 2022-12-14 01:56:46

luofeiyu
Member
Registered: 2015-11-03
Posts: 30

How can install the usbutils ?

It get 404 error when to install usbutils

sudo pacman -S  usbutils
resolving dependencies...
looking for conflicting packages...

Packages (1) usbutils-014-2

Total Download Size:   0.08 MiB
Total Installed Size:  0.31 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 usbutils-014-2-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirrors.aliyun.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirrors.ustc.edu.cn : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from repo.huaweicloud.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirrors.163.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.pseudoform.org : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirrors.niyawe.de : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from archlinux.mailtunnel.eu : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from asia.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.theo546.fr : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.telepoint.bg : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.cyberbits.eu : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from at.arch.mirror.kescher.at : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from archlinux-br.com.br : Could not resolve host: archlinux-br.com.br
warning: too many errors from archlinux-br.com.br, skipping for the remainder of this transaction
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.the-repo.org : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from america.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.jaime.sh : Could not resolve host: mirror.jaime.sh
warning: too many errors from mirror.jaime.sh, skipping for the remainder of this transaction
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from phinau.de : The requested URL returned error: 404
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from archmirror.it : The requested URL returned error: 403
error: failed retrieving file 'usbutils-014-2-x86_64.pkg.tar.zst' from mirror.osbeck.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

So i donwload to install.

wget https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/snapshot/usbutils-015.tar.gz
tar xvzf  usbutils-015.tar.gz
cd  usbutils-015
ls  
aclocal.m4      config.h       configure     desc-defs.h  LICENSES    lsusb.h      Makefile.am  names.h    sysfs.c            usb-devices.1.in  usbmisc.h
autogen.sh      config.h.in    configure.ac  desc-dump.c  list.h      lsusb.py.in  Makefile.in  NEWS       sysfs.h            usbhid-dump       usbreset.c
autom4te.cache  config.log     depcomp       desc-dump.h  lsusb.8.in  lsusb-t.c    missing      README.md  travis-autogen.sh  usbhid-dump.8.in  usb-spec.h
compile         config.status  desc-defs.c   install-sh   lsusb.c     Makefile     names.c      stamp-h1   usb-devices        usbmisc.c         usbutils.spdx

Have a look at README.md,it says:

To work with the "raw" repo, after cloning it just do:

	./autogen.sh

I install it :

sudo ./autogen.sh

config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

	usbutils 015
	=============

	prefix:                 /usr
	datarootdir:            ${prefix}/share
	datadir:                ${datarootdir}
	mandir:                 ${datarootdir}/man

	usb.ids:                ${datarootdir}/usb.ids

	compiler:               gcc
	cflags:                  -g -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wpointer-arith -Wsign-compare -Wchar-subscripts -Wstrict-prototypes -Wshadow -Wformat=2 -Wtype-limits -O2
	ldflags:

No call the lsusb command:

lsusb
bash: lsusb: command not found

How to fix it then?

Last edited by luofeiyu (2022-12-14 04:51:39)

Offline

#2 2022-12-14 02:04:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How can install the usbutils ?

pacman -Syu usbutils

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-12-14 04:52:15

luofeiyu
Member
Registered: 2015-11-03
Posts: 30

Re: How can install the usbutils ?

sudo pacman -Syu  usbutils
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
 archlinuxcn          1958.0 KiB   863 KiB/s 00:02 [######################] 100%
:: Starting full system upgrade...
warning: metis: local (5.1.0.p10-2) is newer than archlinuxcn (5.1.0-1)
resolving dependencies...
:: There are 2 providers available for libgit2.so:
:: Repository extra
   1) libgit2
:: Repository archlinuxcn
   2) libgit2-julia

Enter a number (default=1): 
looking for conflicting packages...

Packages (317) adwaita-cursors-43-2  adwaita-icon-theme-43-2  alsa-lib-1.2.8-1
               alsa-ucm-conf-1.2.8-1  alsa-utils-1.2.8-1  amtk-5.6.1-1
               apache-2.4.54-3  apr-util-1.6.1-10  archlinux-keyring-20221123-1
               babl-0.1.98-1  binutils-2.39-4  blas-3.11.0-1  bluez-5.66-1
               bluez-libs-5.66-1  boost-libs-1.80.0-3  brotli-1.0.9-9
               btrfs-progs-6.0.2-1  bzip2-1.0.8-5
               ca-certificates-mozilla-3.86-1  clion-1:2022.3-1
               containerd-1.6.12-1  coreutils-9.1-3  cryptsetup-2.6.0-1
               curl-7.86.0-4  dconf-0.40.0-2  default-cursors-1-1
               device-mapper-2.03.17-1  dmraid-1.0.0.rc16.3-14
               docker-1:20.10.21-1  dpkg-1.21.12-1  ell-0.54-1  enchant-2.3.3-2
               expat-2.5.0-1  faad2-2.10.1-1  fakeroot-1.30.1-1
               fcitx5-5.0.21-1  fcitx5-chinese-addons-5.0.16-1
               fcitx5-configtool-5.0.16-1  fcitx5-gtk-5.0.21-1
               fcitx5-qt-5.0.16-1  firefox-108.0-1  flac-1.4.2-1  fmt-9.1.0-2
               fontconfig-2:2.14.1-2  freeglut-3.4.0-1  gawk-5.2.1-1
               gcr-3.41.1-3  gd-2.3.3-5  gdk-pixbuf2-2.42.10-1  gedit-43.2-2
               gegl-0.4.40-2  gettext-0.21.1-2  ghostscript-10.0.0-2
               git-2.39.0-1  glib2-2.74.3-1  gnutls-3.7.8-4  gptfdisk-1.0.9-2
               graphviz-7.0.4-1  grub-2:2.06.r403.g7259d55ff-1
               gsettings-desktop-schemas-43.0-1  gspell-1.12.0-2
               gst-plugins-base-1.20.4-3  gst-plugins-base-libs-1.20.4-3
               gstreamer-1.20.4-3  gtk-update-icon-cache-1:4.8.2-1
               gtk3-1:3.24.35-2  gtksourceview4-4.8.4-1  guile-3.0.8-3
               harfbuzz-5.3.1-3  harfbuzz-icu-5.3.1-3  http-parser-2.9.4-1
               hwdata-0.365-1  hyphen-2.8.8-5  iana-etc-20221107-1  icu-72.1-2
               ijs-0.35-5  imagemagick-7.1.0.54-1  imath-3.1.6-1
               iputils-20221126-1  iso-codes-4.12.0-1  iwd-2.0-1
               jasper-4.0.0-1  jre-openjdk-19.0.1.u10-3
               jre-openjdk-headless-19.0.1.u10-3  jre8-openjdk-8.352.u08-2
               jre8-openjdk-headless-8.352.u08-2  kguiaddons-5.101.0-1
               kitemviews-5.101.0-1  kmod-30-3  krb5-1.20.1-1
               kwidgetsaddons-5.101.0-1  lapack-3.11.0-1  lcms2-2.14-1
               ldns-1.8.3-2  libarchive-3.6.2-2  libass-0.17.0-1
               libasyncns-1:0.8+r3+g68cd5af-2  libavif-0.11.1-1
               libbluray-1.3.4-1  libbsd-0.11.7-1
               libcanberra-1:0.30+r2+gc0620e4-2  libcdr-0.1.7-5
               libcloudproviders-0.3.1+r8+g3a229ee-1  libdatrie-0.2.13-2
               libde265-1.0.9-1  libdrm-2.4.114-1  libe-book-0.1.3-13
               libedit-20210910_3.1-2  libelf-0.188-1  libepubgen-0.1.1-4
               libevent-2.1.12-4  libffi-3.4.4-1  libfontenc-1.1.7-1
               libgcrypt-1.10.1-2  libgit2-1:1.5.0-2  libgpg-error-1.46-2
               libheif-1.14.0-1  libical-3.0.16-2  libice-1.1.1-1
               libidn2-2.3.4-3  libime-1.0.16-1  libinput-1.22.0-1
               libldap-2.6.3-2  libmm-glib-1.20.2-1  libmpc-1.3.0-1
               libmspub-0.1.4-13  libmwaw-0.3.21-3  libnewt-0.52.23-1
               libnftnl-1.2.4-1  libnghttp2-1.51.0-1  libnm-1.40.6-1
               libnumbertext-1.0.11-1  libodfgen-0.1.8-2  libpeas-1.34.0-1
               libpipeline-1.5.7-1  libpng-1.6.39-1  libpsl-0.21.1-3
               libpulse-16.1-3  libqxp-0.0.2-9  libraw-0.20.2-3
               libreoffice-still-7.3.7-2  librevenge-0.0.4-5  libsasl-2.1.28-3
               libsoup3-3.2.2-1  libspiro-1:20221101-1  libssh-0.10.4-3
               libssh2-1.10.0-3  libsysprof-capture-3.46.0-1  libteam-1.31-7
               libthai-0.1.29-2  libtirpc-1.3.3-2  libunistring-1.1-2
               libunwind-1.6.2-2  libusb-compat-0.1.8-1  libvisio-0.1.7-8
               libvpx-1.12.0-2  libwpd-0.10.3-4  libwpg-0.3.3-4
               libwps-0.4.13-1  libx11-1.8.2-2  libxau-1.0.11-1  libxcb-1.15-2
               libxcomposite-0.4.6-1  libxcrypt-4.4.33-1  libxcursor-1.2.1-3
               libxdamage-1.1.6-1  libxdmcp-1.1.4-1  libxext-1.3.5-1
               libxfixes-6.0.0-2  libxft-2.3.7-1  libxi-1.8-2
               libxinerama-1.1.5-1  libxkbcommon-1.4.1-2
               libxkbcommon-x11-1.4.1-2  libxkbfile-1.1.2-1  libxml2-2.10.3-2
               libxpm-3.5.14-1  libxrandr-1.5.3-1  libxrender-0.9.11-1
               libxres-1.2.2-1  libxshmfence-1.3.2-1  libxv-1.0.12-1
               libzmf-0.0.2-13  linux-firmware-20221109.60310c2-2
               linux-firmware-whence-20221109.60310c2-2  linux-lts-5.15.82-1
               linux-lts-headers-5.15.82-1  lirc-1:0.10.2-1  llvm-libs-14.0.6-4
               lm_sensors-1:3.6.0.r41.g31d1f125-2  lpsolve-5.5.2.11-2
               luajit-2.1.0.beta3.r457.g637721d0-1  luit-20221028-1
               lvm2-2.03.17-1  lxhotkey-0.1.1-2  lxrandr-0.3.2-3  lzo-2.10-4
               make-4.3-5  man-db-2.11.1-1  mesa-22.2.3-1  minizip-1:1.2.13-2
               mkinitcpio-34-2  mobile-broadband-provider-info-20221107-1
               mpfr-4.1.1.p1-1  mpg123-1.31.1-1  mplayer-38407-1  neon-0.32.4-2
               netpbm-10.73.41-1  networkmanager-1.40.6-1  nss-3.86-1
               ntfs-3g-2022.10.3-1  obconf-2.0.4-8  openbox-3.6.1-9
               opencc-1.1.5-1  openpmix-4.2.2-1  openssh-9.1p1-3
               openssl-3.0.7-2  opera-93.0.4585.37-1  orc-0.4.33-1
               pacman-6.0.2-5  pacman-mirrorlist-20221204-1  pambase-20221020-1
               pango-1:1.50.12-1  pciutils-3.9.0-1  pixman-0.42.2-1
               polkit-122-1  poppler-22.12.0-1  poppler-data-0.4.11-3
               poppler-glib-22.12.0-1  popt-1.19-1  postgresql-14.6-1
               postgresql-libs-14.6-1  pulseaudio-16.1-3
               pulseaudio-bluetooth-16.1-3  python-3.10.8-3
               qt5-base-5.15.7+kde+r177-1  qt5-declarative-5.15.7+kde+r25-1
               qt5-location-5.15.7+kde+r3-1  qt5-quickcontrols2-5.15.7+kde+r7-1
               qt5-script-5.15.11-2  qt5-sensors-5.15.7-1
               qt5-svg-5.15.7+kde+r9-1  qt5-tools-5.15.7+kde+r1-2
               qt5-translations-5.15.7-1  qt5-wayland-5.15.7+kde+r56-1
               qt5-webchannel-5.15.7+kde+r3-1  qt5-webengine-5.15.11-3
               qt5-webkit-5.212.0alpha4-18  qt5-websockets-5.15.7+kde+r2-1
               qt5-webview-5.15.7-1  qt5-x11extras-5.15.7-1  raptor-2.0.15-21
               rav1e-0.6.1-1  re2-1:20221201-2  readline-8.2.001-1
               sdl2-2.26.1-1  sed-4.9-1  shadow-4.12.3-2
               skypeforlinux-stable-bin-8.92.0.204-1  smbclient-4.17.3-1
               sqlite-3.40.0-2  srt-1.5.1-3  sudo-1.9.12.p1-1
               suitesparse-6.0.2-1  svt-av1-1.4.0-1  systemd-252.3-1
               systemd-libs-252.3-1  systemd-sysvcompat-252.3-1  tepl-1:6.2.0-3
               texinfo-7.0.1-1  tpm2-tss-3.2.0-3  tracker3-3.4.2-1
               ttf-arphic-ukai-0.2.20080216.2-2
               ttf-arphic-uming-0.2.20080216.2-2  tzdata-2022g-1
               uchardet-0.0.7-1  unicode-cldr-annotations-41.0-1
               vim-9.0.0910-1  vim-runtime-9.0.0910-1  vte-common-0.70.2-1
               vte3-0.70.2-1  vulkan-icd-loader-1.3.235-1  wayland-1.21.0-2
               wayland-protocols-1.31-1  wpa_supplicant-2:2.10-7
               xcb-imdkit-1.0.4-1  xcb-proto-1.15.2-2
               xdg-utils-1.1.3+25+g8ae0263-1  xf86-video-vesa-2.6.0-1
               xfsprogs-6.0.0-1  xmlsec-1.2.37-1  xmms2-0.9.1-3
               xorg-docs-1.7.2-2  xorg-fonts-100dpi-1.0.3-8
               xorg-fonts-75dpi-1.0.3-8  xorg-sessreg-1.1.3-1
               xorg-x11perf-1.6.2-1  xorg-xcursorgen-1.0.8-1
               xorg-xgamma-1.0.7-1  xorg-xhost-1.0.9-1  xorg-xinit-1.4.2-1
               xorg-xkbcomp-1.4.6-1  xorg-xkbevd-1.1.5-1  xorg-xkill-1.0.6-1
               xorg-xlsatoms-1.1.4-1  xorg-xlsclients-1.1.5-1
               xorg-xprop-1.2.6-1  xorg-xrandr-1.5.2-1  xorg-xset-1.2.5-1
               xorg-xsetroot-1.1.3-1  xorg-xvinfo-1.1.5-1
               xorg-xwayland-22.1.5-1  xterm-377-1  xz-5.2.9-1  yay-11.3.1-1
               zlib-1:1.2.13-2  usbutils-015-2

Total Download Size:     74.15 MiB
Total Installed Size:  6189.99 MiB
Net Upgrade Size:        62.48 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 jre-openjdk-head...    38.1 MiB  1234 KiB/s 00:32 [######################] 100%
 jre8-openjdk-hea...    28.8 MiB  1418 KiB/s 00:21 [######################] 100%
 binutils-2.39-4-...     6.9 MiB  1500 KiB/s 00:05 [######################] 100%
 jre-openjdk-19.0...   184.1 KiB   736 KiB/s 00:00 [######################] 100%
 jre8-openjdk-8.3...   173.1 KiB   753 KiB/s 00:00 [######################] 100%
 Total (5/5)            74.2 MiB  1306 KiB/s 00:58 [######################] 100%
(317/317) checking keys in keyring                 [######################] 100%
(317/317) checking package integrity               [######################] 100%
error: binutils: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/binutils-2.39-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jre-openjdk-headless: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jre-openjdk-headless-19.0.1.u10-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jre-openjdk: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jre-openjdk-19.0.1.u10-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jre8-openjdk-headless: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jre8-openjdk-headless-8.352.u08-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jre8-openjdk: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jre8-openjdk-8.352.u08-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
[arch@arch ~]$ lsusb
bash: lsusb: command not found

Offline

#4 2022-12-14 04:58:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How can install the usbutils ?

Read pacman's output, don't just paste it here and wait for someone to tell you what to do...

https://wiki.archlinux.org/title/Pacman … )%22_error


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-12-14 05:51:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: How can install the usbutils ?

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
...

This is not supported. The -testing repos are all-or-nothing.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB