RE: Getting Invalid version exception during apt update

2023-01-03 Thread Thomas Ward
You already got a response on this thread from Colin, quoted below:


On Tue, Jan 03, 2023 at 12:04:34PM +0530, probal basak wrote:

> I am getting the below exception while trying to issue apt update:

> Getting this issue since last week. Previously the same thing used to

> work perfectly fine.



This is a bug in appimage-builder.  As you can see from the fact that it's 
installed in /usr/local, it's not supplied by Ubuntu.



The bug is that it's apparently trying to use the Python packaging.version 
library to parse and compare the version numbers of Ubuntu packages.  Ubuntu 
package versions are not compatible with Python package versions, and it is 
incorrect to use Python's packaging.version library to do this job.



It looks like this bug was fixed in

https://github.com/AppImageCrafters/appimage-builder/pull/281, although it 
doesn't seem that there's been a release since that fix landed.  I don't know 
how best to advise you to apply that fix to your system, but presumably you 
installed this program yourself and so have some idea of how best to upgrade it.



--

Colin Watson (he/him)  [cjwat...@ubuntu.com]


From: Ubuntu-devel-discuss  On 
Behalf Of probal basak
Sent: Tuesday, January 3, 2023 1:36 AM
To: ubuntu-devel-discuss@lists.ubuntu.com
Subject: Getting Invalid version exception during apt update

Hello Team,

I am getting the below exception while trying to issue apt update:
Getting this issue since last week. Previously the same thing used to work 
perfectly fine.

Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 
Packages [1385 kB]
Fetched 17.1 MB in 5s (3617 kB/s)
Reading package lists... Done
Traceback (most recent call last):
  File "/usr/local/bin/appimage-builder", line 8, in 
sys.exit(__main__())
  File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py", 
line 58, in __main__
invoker.execute(commands)
  File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py", 
line 41, in execute
command()
  File 
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py",
 line 46, in __call__
deployed_packages = apt_deploy.deploy(
  File 
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
 line 41, in deploy
self._prepare_apt_venv()
  File 
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
 line 57, in _prepare_apt_venv
apt_core_packages = self._remove_old_packages(apt_core_packages)
  File 
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
 line 113, in _remove_old_packages
if package > latest_packages[pkg_tuple]:
  File 
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/package.py",
 line 79, in __gt__
return version.parse(self.version) > version.parse(other.version)
  File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line 52, 
in parse
return Version(version)
  File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line 197, 
in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '1.19.7ubuntu3'


Can you please help me to understand what the issue is about? And how to 
resolve this issue please?

Thanks in advance.


--
Thanks,
Probal Basak.
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Bug#1027473: fwbuilder: Link to Quick Start Guide does not work, no alternatives found

2023-01-03 Thread Omer Zak
Package: fwbuilder
Version: 5.3.7-4.1
Severity: normal
Tags: upstream

When starting fwbuilder after installing fwbuilder, fwbuilder-common,
fwbuilder-doc
(each of them is version 5.3.7-4.1), I am offered the option to watch
the Quick Start Guide by clicking on the "Watch the guide" in bottom
right corner of the pop up dialog.

This action gets the browser to open the link:
http://www.fwbuilder.org/4.0/quick_start_guide_1.html
However, as of today, the domain www.fwbuilder.org cannot be resolved.

1. fwbuilder.org is registered in the whois database.
2. The quick start guide does not seem to be available from
   fwbuilder-doc.
   At any case, in /usr/share/doc/fwbuilder-doc, there is no
   file whose name may hint at its being the quick start guide.
3. I looked for the file in Internet Archive:
  
https://web.archive.org/web/*/http://www.fwbuilder.org/4.0/quick_start_guide_1.html*
   and even there, I did not find the quick start guide.


-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-0.deb11.2-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fwbuilder depends on:
ii  fwbuilder-common 5.3.7-4.1
ii  libc62.31-13+deb11u5
ii  libgcc-s110.2.1-6
ii  libqt5core5a 5.15.2+dfsg-9
ii  libqt5gui5   5.15.2+dfsg-9
ii  libqt5network5   5.15.2+dfsg-9
ii  libqt5printsupport5  5.15.2+dfsg-9
ii  libqt5widgets5   5.15.2+dfsg-9
ii  libsnmp405.9+dfsg-4+deb11u1
ii  libstdc++6   10.2.1-6
ii  libxml2  2.9.10+dfsg-6.7+deb11u3
ii  libxslt1.1   1.1.34-4+deb11u1
ii  zlib1g   1:1.2.11.dfsg-2+deb11u2

Versions of packages fwbuilder recommends:
ii  fwbuilder-doc  5.3.7-4.1
ii  rcs5.10.0-1

fwbuilder suggests no packages.

-- no debconf information

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Getting Invalid version exception during apt update

2023-01-03 Thread probal basak
 Hello Team,

I am getting the below exception while trying to issue apt update:
Getting this issue since last week. Previously the same thing used to work
perfectly fine.

Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64
> Packages [1385 kB]
> Fetched 17.1 MB in 5s (3617 kB/s)
> Reading package lists... Done
> Traceback (most recent call last):
>   File "/usr/local/bin/appimage-builder", line 8, in 
> sys.exit(__main__())
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py", line
> 58, in __main__
> invoker.execute(commands)
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py", line
> 41, in execute
> command()
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py",
> line 46, in __call__
> deployed_packages = apt_deploy.deploy(
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 41, in deploy
> self._prepare_apt_venv()
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 57, in _prepare_apt_venv
> apt_core_packages = self._remove_old_packages(apt_core_packages)
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
> line 113, in _remove_old_packages
> if package > latest_packages[pkg_tuple]:
>   File
> "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/package.py",
> line 79, in __gt__
> return version.parse(self.version) > version.parse(other.version)
>   File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line
> 52, in parse
> return Version(version)
>   File "/usr/local/lib/python3.8/dist-packages/packaging/version.py", line
> 197, in __init__
> raise InvalidVersion(f"Invalid version: '{version}'")
> packaging.version.InvalidVersion: Invalid version: '1.19.7ubuntu3'
>


Can you please help me to understand what the issue is about? And how to
resolve this issue please?

Thanks in advance.


-- 
Thanks,
Probal Basak.
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss