Replacing dependency on Ubuntu-specific /etc/lsb-release dependency to allow landscape-package-reporter to work with Debian
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
Wishlist
|
Mitch Burton |
Bug Description
According to the FAQ 'We don't test landscape-client on Debian, but we don't really try to make it difficult for Debian users.' (https:/
I have paid for and been trialling landscape-client on Debian 9 and 10 (Jessie/Buster) and does indeed work remarkably well - computers can be added, monitoring works and in general all seems happy. The only exception is with 'landscape-
This appears to be a conscious decision by the Debian project as they didn't believe it was necessary for LSB compatibility https:/
If I manually create the relevant file on Debian with /usr/bin/
apt install lsb-release
echo DISTRIB_
echo DISTRIB_
echo DISTRIB_
echo DISTRIB_
This allows landscape-
I was wondering if you could update landscape-
Hoping you agree :)
--
2022-09-20 13:33:52,570 WARNING [MainThread] Couldn't determine which hash=>id database to use: [Errno 2] No such file or directory: '/etc/lsb-release'
2022-09-20 13:33:52,576 WARNING [MainThread] Couldn't determine which hash=>id database to use: [Errno 2] No such file or directory: '/etc/lsb-release'
2022-09-20 13:33:52,634 INFO [MainThread] Received 500 package hash => id translations, 0 hashes are unknown.
2022-09-20 13:35:32,215 INFO [MainThread] Queuing request for package hash => id translation on 500 hash(es).
2022-09-20 13:35:32,262 ERROR [MainThread] None
Traceback (most recent call last):
File "/usr/lib/
current.result = callback(
File "/usr/lib/
result.
File "/usr/lib/
deferred = self.detect_
File "/usr/lib/
return self._compute_
File "/usr/lib/
lsb = parse_lsb_
File "/usr/lib/
fd = open(lsb_
FileNotFoundError: [Errno 2] No such file or directory: '/etc/lsb-release'
Changed in landscape-client: | |
status: | Triaged → In Progress |
assignee: | nobody → Mitch Burton (mitchburton) |
I'm not against the idea, and it seems relatively low-impact to implement. Comes with the caveat that certain Landscape features may not work as designed, though - can't guarantee security updates/CVEs will necessarily be accurately reported.
With that in mind, I'm happy to implement it (eventually) or merge a PR to https:/ /github. com/CanonicalLt d/landscape- client