LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2022, 08:05 AM   #1
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Rep: Reputation: 0
dpkg: warning: version 'uname -r' has bad syntax: version number does not start with digit


Hi, I was looking around but I'm not still able to resolve this problem

# Ubuntu server 22.04

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

$ uname -r
kernel 6.0.9-060009-generic

# old kernels
$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii linux-image-5.15.0-56-generic 5.15.0-56.62 amd64 Signed kernel image generic

$ nvidia-smi
Command 'nvidia-smi' not found, but can be installed with:
sudo apt install nvidia-utils-390 # version 390.157-0ubuntu0.22.04.1, or
sudo apt install nvidia-utils-450-server # version 450.216.04-0ubuntu0.22.04.1
sudo apt install nvidia-utils-470 # version 470.161.03-0ubuntu0.22.04.1
sudo apt install nvidia-utils-470-server # version 470.161.03-0ubuntu0.22.04.1
sudo apt install nvidia-utils-510 # version 510.108.03-0ubuntu0.22.04.1
sudo apt install nvidia-utils-515 # version 515.86.01-0ubuntu0.22.04.1
sudo apt install nvidia-utils-515-server # version 515.86.01-0ubuntu0.22.04.1
sudo apt install nvidia-utils-525 # version 525.60.11-0ubuntu0.22.04.1
sudo apt install nvidia-utils-418-server # version 418.226.00-0ubuntu4
sudo apt install nvidia-utils-510-server # version 510.47.03-0ubuntu3

There is not a recommend version

$ sudo ubuntu-drivers autoinstall

PHP Code:
dpkgwarningversion 'unsigned-5.19.3-051903' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.18.0-051800' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.19.3-051903' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.15.5-051505' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.19.3-051903' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.19.3-051903' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-6.0.9-060009' has bad syntaxversion number does not start with digit
dpkg
warningversion 'unsigned-5.19.3-051903' has bad syntaxversion number does not start with digit
Traceback 
(most recent call last):
  
File "/usr/bin/ubuntu-drivers"line 513in <module>
    
greet()
  
File "/usr/lib/python3/dist-packages/click/core.py"line 1128in __call__
    
return self.main(*args, **kwargs)
  
File "/usr/lib/python3/dist-packages/click/core.py"line 1053in main
    rv 
self.invoke(ctx)
  
File "/usr/lib/python3/dist-packages/click/core.py"line 1659in invoke
    
return _process_result(sub_ctx.command.invoke(sub_ctx))
  
File "/usr/lib/python3/dist-packages/click/core.py"line 1395in invoke
    
return ctx.invoke(self.callback, **ctx.params)
  
File "/usr/lib/python3/dist-packages/click/core.py"line 754in invoke
    
return __callback(*args, **kwargs)
  
File "/usr/lib/python3/dist-packages/click/decorators.py"line 84in new_func
    
return ctx.invoke(fobj, *args, **kwargs)
  
File "/usr/lib/python3/dist-packages/click/core.py"line 754in invoke
    
return __callback(*args, **kwargs)
  
File "/usr/bin/ubuntu-drivers"line 432in autoinstall
    command_install
(config)
  
File "/usr/bin/ubuntu-drivers"line 187in command_install
    UbuntuDrivers
.detect.nvidia_desktop_pre_installation_hook(to_install)
  
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py"line 839in nvidia_desktop_pre_installation_hook
    with_nvidia_kms 
version >= 470
UnboundLocalError
local variable 'version' referenced before assignment 
Any help please? If you need more info let me know.

Last edited by echoR1; 12-18-2022 at 08:24 AM.
 
Old 12-18-2022, 09:43 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Weird. "uname -r" should just give the kernel version, like "6.0.9-060009-generic" but yours is giving "kernel 6.0.9-060009-generic"

Do you have an alias or a non-standard version of uname?

Can you post the output of:

Code:
cat /proc/version

Last edited by smallpond; 12-18-2022 at 09:47 AM.
 
Old 12-19-2022, 03:06 AM   #3
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
Weird. "uname -r" should just give the kernel version, like "6.0.9-060009-generic" but yours is giving "kernel 6.0.9-060009-generic"

Do you have an alias or a non-standard version of uname?

Can you post the output of:

Code:
cat /proc/version
Hi, sorry I added the word "kernel", in any case looking in the version file I have this:

Linux version 6.0.9-060009-generic (kernel@sita) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-9ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202211161102 SMP PREEMPT_DYNAMIC Wed Nov 16 12:14:18 UTC 2022

Any idea is welcome!
 
Old 12-19-2022, 06:03 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,109

Rep: Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367
Quote:
dpkg:*warning:*version*'unsigned-5.19.3-051903'*has*bad*syntax:*version*number*does*not*start*with*digit
This means (if I understand well) you want to install a custom made kernel with a non-standard version info (or something similar).
From the other hand this "unsigned" may mean a configuration error somewhere, therefore the system cannot parse version info properly.
Did you make any [related] modification on the system?
 
Old 12-19-2022, 10:05 AM   #5
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
This means (if I understand well) you want to install a custom made kernel with a non-standard version info (or something similar).
From the other hand this "unsigned" may mean a configuration error somewhere, therefore the system cannot parse version info properly.
Did you make any [related] modification on the system?
Hi, I always update the kernel manually, taking the info from here. During the first/fresh Ubuntu OS installation has a kernel something like 5.15.x and I prefer to upgrade to the, more or less, last one. The problem is that I do not have idea what happened :-/ I also have the same problem with 2 other machines (ubuntu-server). In two of them I can re-install Ubuntu (in case I do not have any solution) but in one of them it is very very very hard :-( With Ubuntu LTS/GUI no problem.

Last edited by echoR1; 12-19-2022 at 11:25 AM.
 
Old 12-19-2022, 11:27 AM   #6
echoR1
LQ Newbie
 
Registered: Sep 2022
Posts: 6

Original Poster
Rep: Reputation: 0
I uninstalled all new kernels and I went back to the original one ... now install the drivers without errors but doesn't detect the GPU ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit Ecobureau Linux - Software 9 09-13-2019 08:24 PM
[SOLVED] Read digit by digit in variable pedropt Programming 6 12-25-2017 04:24 AM
Substitue single-digit, two-digit, and 3-digit numbers with text using sed dmason165 Programming 13 08-07-2009 10:38 AM
dpkg-reconfigure linux-image-$(uname -r) Paxmaster Ubuntu 1 12-13-2005 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration