KanoComputing / kano-updater

GNU General Public License v2.0
8 stars 11 forks source link

NO_PUBKEY error after attempt to update to stretch repo #320

Open BloggerBust opened 6 years ago

BloggerBust commented 6 years ago

Hi, The following is not specifically an issue with your updater. It is an issue with updating the kano though and I am hoping that you might be able to help me get this sorted out.

I have the kano complete. The kano was on the jessie repo, but I needed a package that was only available on stretch. I updated /etc/apt/sources.list

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi                                                                                                   
deb-src http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi 

After running apt-get update / upgrade and dist-upgrade I received a gpg invalid sig error. So I deleted the sig with sudo apt-key del 0EA88FEDB9B35AE4A2FB9526B1FE0458DEA56695 and then tried getting a new key with sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5243CDED. I found this command and the key id 5243CDED the updater source code. Now when I run apt-get update I get a no PUBKEY error

$ sudo apt-get update                                                                                                                                    
Get:1 http://repo.kano.me/archive-jessie release InRelease [2226 B]                                                                                                                  
Get:2 http://repo.kano.me/archive-jessie release-urgent InRelease [1522 B]                                                                                                           
Get:3 http://repo.kano.me/raspberrypi-jessie jessie InRelease [13.2 kB]                                                                                                              
Get:4 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]                                                                                                        
Ign:1 http://repo.kano.me/archive-jessie release InRelease                                                                                                                           
Get:5 http://repo.kano.me/archive-jessie release/main armhf Packages [30.9 kB]                                                                                                       
Ign:2 http://repo.kano.me/archive-jessie release-urgent InRelease                                                                                                                    
Get:6 http://mirrordirector.raspbian.org/raspbian stretch/non-free Sources [125 kB]                                                                                                  
Get:7 http://repo.kano.me/raspberrypi-jessie jessie/main armhf Packages [144 kB]                                                                                                     
Get:8 http://repo.kano.me/raspberrypi-jessie jessie/ui armhf Packages [14.1 kB]                                                                                                      
Get:9 http://mirrordirector.raspbian.org/raspbian stretch/rpi Sources [1132 B]                                                                                                       
Get:10 http://mirrordirector.raspbian.org/raspbian stretch/main Sources [9715 kB]                                                                                                    
Get:11 http://mirrordirector.raspbian.org/raspbian stretch/contrib Sources [75.2 kB]                                                                                                 
Get:12 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]                                                                                             
Get:13 http://mirrordirector.raspbian.org/raspbian stretch/contrib armhf Packages [56.8 kB]                                                                                          
Get:14 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB]                                                                                         
Get:15 http://mirrordirector.raspbian.org/raspbian stretch/rpi armhf Packages [1360 B]                                                                                               
Fetched 21.9 MB in 34s (634 kB/s)                                                                                                                                                    
Reading package lists... Done                                                                                                                                                        
W: GPG error: http://repo.kano.me/archive-jessie release InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1FE0458DEA5669
5                                                                                                                                                                                    
W: The repository 'http://repo.kano.me/archive-jessie release InRelease' is not signed.                                                                                              
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.                                                                                 
N: See apt-secure(8) manpage for repository creation and user configuration details.                                                                                                 
W: GPG error: http://repo.kano.me/archive-jessie release-urgent InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1FE0458
DEA56695                                                                                                                                                                             
W: The repository 'http://repo.kano.me/archive-jessie release-urgent InRelease' is not signed.                                                                                       
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.                                                                                 
N: See apt-secure(8) manpage for repository creation and user configuration details.

Also, if I try to run the kano-updater I get the following error:

$ sudo kano-updater                                                                                                                           
Unable to init server: Could not connect: Connection refused                                                                                                                         
Unable to init server: Could not connect: Connection refused                                                                                                                         
/usr/lib/python2.7/dist-packages/kano/gtk3/kano_dialog.py:22: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import t
o ensure that the right version gets loaded.                                                                                                                                         
  from gi.repository import Gtk                                                                                                                                                      

(kano-updater-internal:22699): Gtk-WARNING **: Theme parsing error: updater.css:31:26: Using Pango syntax for the font: style property is deprecated; please use CSS syntax          
Error in sys.excepthook:                                                                                                                                                             
Traceback (most recent call last):                                                                                                                                                   
  File "/usr/lib/python2.7/dist-packages/kano/_logging.py", line 372, in log_excepthook                                                                                              
    exc_value=exc_value)                                                                                                                                                             
  File "/usr/lib/python2.7/dist-packages/kano/_logging.py", line 219, in error                                                                                                       
    self.write(msg, **kwargs)                                                                                                                                                        
  File "/usr/lib/python2.7/dist-packages/kano/_logging.py", line 200, in write                                                                                                       
    self._log_file.write("{}\n".format(json.dumps(log)))                                                                                                                             
  File "/usr/lib/python2.7/json/__init__.py", line 244, in dumps                                                                                                                     
    return _default_encoder.encode(obj)                                                                                                                                              
  File "/usr/lib/python2.7/json/encoder.py", line 207, in encode                                                                                                                     
    chunks = self.iterencode(o, _one_shot=True)                                                                                                                                      
  File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode                                                                                                                 
    return _iterencode(o, 0)                                                                                                                                                         
  File "/usr/lib/python2.7/json/encoder.py", line 184, in default                                                                                                                    
    raise TypeError(repr(o) + " is not JSON serializable")                                                                                                                           
TypeError: <class 'GLib.Error'> is not JSON serializable                                                                                                                             

Original exception was:                                                                                                                                                              
Traceback (most recent call last):                                                                                                                                                   
  File "/usr/bin/kano-updater-internal", line 351, in <module>                                                                                                                       
    sys.exit(main() or RC.SUCCESS)                                                                                                                                                   
  File "/usr/bin/kano-updater-internal", line 345, in main                                                                                                                           
    run_install(gui=True, confirm=False)                                                                                                                                             
  File "/usr/bin/kano-updater-internal", line 158, in run_install                                                                                                                    
    launch_install_gui(confirm=confirm, splash_pid=splash_pid)                                                                                                                       
  File "/usr/lib/python2.7/dist-packages/kano_updater/ui/main.py", line 39, in launch_install_gui                                                                                    
    win = UpdatesDownloadedWindow() if confirm else InstallWindow()                                                                                                                  
  File "/usr/lib/python2.7/dist-packages/kano_updater/ui/install_window.py", line 30, in __init__                                                                                    
    apply_styling_to_screen(self.CSS_FILE)                                                                                                                                           
  File "/usr/lib/python2.7/dist-packages/kano/gtk3/apply_styles.py", line 39, in apply_styling_to_screen                                                                             
    css.load_from_path(css_file)                                                                                                                                                     
GLib.Error: gtk-css-provider-error-quark: updater.css:31:10not a number (1)

How can I correct this issue so that I can update my kano using the stretch repo?

Thank you kindly for your time.

BloggerBust commented 6 years ago

I was able to get the kano jessie repo key installed again via

wget -qO - http://repo.kano.me/archive-jessie/repo.gpg.key | sudo apt-key add - 

Once the key was updated I ran an update. It is back to complaining about the signature being invalid:

$ sudo apt-get update                                                                                                                                               
Get:1 http://repo.kano.me/archive-jessie release InRelease [2226 B]                                                                                                                  
Get:2 http://repo.kano.me/archive-jessie release-urgent InRelease [1522 B]                                                                                                           
Hit:3 http://repo.kano.me/raspberrypi-jessie jessie InRelease                                                                                                                        
Hit:4 http://mirrordirector.raspbian.org/raspbian stretch InRelease                                                                                                                  
Ign:2 http://repo.kano.me/archive-jessie release-urgent InRelease                                                                                                                    
Fetched 3748 B in 2s (1304 B/s)                                                                                                                                                      
Reading package lists... Done                                                                                                                                                        
W: GPG error: http://repo.kano.me/archive-jessie release-urgent InRelease: The following signatures were invalid: 0EA88FEDB9B35AE4A2FB9526B1FE0458DEA56695                           
W: The repository 'http://repo.kano.me/archive-jessie release-urgent InRelease' is not signed.                                                                                       
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.                                                                                 
N: See apt-secure(8) manpage for repository creation and user configuration details.

I believe that the problem is that kano needs a jessie repo, but the /etc/apt/sources.list is pointing to a stretch repo. Is it possible to have the system use both jessie and stretch repos to satisfy the kano packages as well as the stretch packages that I need?

BloggerBust commented 6 years ago

I tried adding the following to /etc/apt/sources.list:

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi                                                                                                    
deb-src http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi                                                                                                
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi                                                                                                   
deb-src http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi

Then ran another update:

$ sudo apt-get update                                                                                                                                        
Hit:1 http://repo.kano.me/archive-jessie release InRelease                                                                                                                           
Get:2 http://repo.kano.me/archive-jessie release-urgent InRelease [1522 B]                                                                                                           
Hit:3 http://repo.kano.me/raspberrypi-jessie jessie InRelease                                                                                                                        
Get:4 http://mirrordirector.raspbian.org/raspbian jessie InRelease [14.9 kB]                                                                                                         
Hit:5 http://mirrordirector.raspbian.org/raspbian stretch InRelease                                                                                                                  
Ign:2 http://repo.kano.me/archive-jessie release-urgent InRelease                                                                                                                    
Get:6 http://mirrordirector.raspbian.org/raspbian jessie/main Sources [7758 kB]                                                                                                      
Get:7 http://mirrordirector.raspbian.org/raspbian jessie/non-free Sources [113 kB]                                                                                                   
Get:8 http://mirrordirector.raspbian.org/raspbian jessie/rpi Sources [1132 B]                                                                                                        
Get:9 http://mirrordirector.raspbian.org/raspbian jessie/contrib Sources [64.5 kB]                                                                                                   
Get:10 http://mirrordirector.raspbian.org/raspbian jessie/main armhf Packages [9536 kB]                                                                                              
Get:11 http://mirrordirector.raspbian.org/raspbian jessie/contrib armhf Packages [43.3 kB]                                                                                           
Get:12 http://mirrordirector.raspbian.org/raspbian jessie/non-free armhf Packages [84.2 kB]                                                                                          
Get:13 http://mirrordirector.raspbian.org/raspbian jessie/rpi armhf Packages [1356 B]                                                                                                
Fetched 17.6 MB in 28s (622 kB/s)                                                                                                                                                    
Reading package lists... Done                                                                                                                                                        
W: GPG error: http://repo.kano.me/archive-jessie release-urgent InRelease: The following signatures were invalid: 0EA88FEDB9B35AE4A2FB9526B1FE0458DEA56695                           
W: The repository 'http://repo.kano.me/archive-jessie release-urgent InRelease' is not signed.                                                                                       
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.                                                                                 
N: See apt-secure(8) manpage for repository creation and user configuration details.

So still no joy!

nothingneko commented 4 years ago

It may be time to re-flash your card. If the problem persists try using Ethernet.