deb-get icon indicating copy to clipboard operation
deb-get copied to clipboard

"Missing required information of github package croc"

Open KlfJoat opened this issue 1 year ago • 0 comments

Please make sure the version of deb-get you are using is up to date:

(excerpt)

...
Preparing to unpack .../deb-get_0.4.0-1_all.deb ...
Unpacking deb-get (0.4.0-1) over (0.4.0-1) ...
Setting up deb-get (0.4.0-1) ...
...

Done.

Expected behavior

deb-get update is resilient against missing information in GitHub packages when the source website changes and the commands return no data or garbage data.

Actual behavior

deb-get update throws an error because yet another package returns no data. This one is croc, whatever that is.

[!] ERROR! Missing required information of github package croc:
URL=
VERSION_PUBLISHED=

This is a recurring problem (#962 #822) because deb-get doesn't gracefully handle the entirely foreseeable and obvious case where the fragile commands used to fill those variables returns nothing or returns garbage. It downloads data from external websites, not versioned APIs. Why is it not resilient against this? Why can't it WARN me and continue processing the rest of the package data? Updates still work, but installs don't. So now there are only 32 packages that users can install from scratch using deb-get.

$ deb-get list                                                                      
1password                                      
activitywatch                                                                                       
agena                                                                                               
alduin                                                                                              
android-messages-desktop                                                                            
antimicrox                                                                                          
anydesk                                                                                             
appimagelauncher                                                                                    
atom                                                                                                
atomic                                                                                              
audio-recorder                                                                                      
authme                                                                                              
azuredatastudio                                                                                     
balena-etcher                                             
bat                                                                                                 
bitwarden                                                                                           
bitwig-studio                                                                                       
blanket                                           
blockbench                                                                                          
bluejeans-v2                                                                                        
bottom                                                                                              
brave-browser                                                                                       
brisqi                                                                                              
caddy                                                                                               
caprine
cawbird                                           
chronograf                                        
code                                                                                                
codium
com.github.tkashkin.gamehub                                                                         
copyq                                                                                               
cosign                                            
$

Steps to reproduce

Run deb-get update. Look at error on screen.

System information

Run the following a paste the output below:

/etc/os-release

PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

/etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"

deb-get version

0.4.0

deb-get update

$ deb-get update
[sudo] password for klfjoat:
  [+] Updating /etc/deb-get/01-main
 #=#=-#    #
  [+] Updating cache of supported apps in the background
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.html
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.html
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
  [+] Updating /var/cache/deb-get/you-dont-need-to-know-the-software-i-install.json
Hit:1 https://you.dont.need/to/know the InRelease
Hit:2 https://software.i.install/you/dont/need to InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu mantic InRelease 
Hit:4 https://know.the.software/i install InRelease
Hit:5 https://you.dont.need/to know InRelease
Hit:6 http://security.ubuntu.com/ubuntu mantic-security InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu mantic-updates InRelease 
Ign:8 https://the.software.i.install you InRelease                                          
Hit:9 http://us.archive.ubuntu.com/ubuntu mantic-backports InRelease                                
Hit:10 https://dont.need.to/know the InRelease
Err:11 https://software.i.install.you dont Release
  404  Not Found [IP: 192.0.2.1 443]
Hit:12 https://ppa.launchpadcontent.net/need/to-know/ubuntu mantic InRelease
Hit:13 https://ppa.launchpadcontent.net/the/software/ubuntu kinetic InRelease
Hit:14 https://ppa.launchpadcontent.net/i/install/ubuntu mantic InRelease
Hit:15 https://ppa.launchpadcontent.net/you/dont-need/ubuntu mantic InRelease
Reading package lists...
E: The repository 'https://to.know.the.software i Release' does not have a Release file.
W: https://install.you.dont/need/to/know/InRelease: Key is stored in legacy trusted.gpg key ring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
$   [!] ERROR! Missing required information of github package croc:
URL=
VERSION_PUBLISHED=

KlfJoat avatar Feb 09 '24 04:02 KlfJoat