musicserver apt install check error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Satega |
Fix Released
|
Low
|
bernhard |
Bug Description
the musicserver backend checks if the package "mt-daapd" is installed.
But the command throws an exception
SategaFault: <Fault 10005: 'Error reading output from command: Return code: 1 Command: dpkg -l mt-daapd | grep mt-daapd stderr: No package fround that matches mt-daapd '>
The output from
berni@zero:~$ apt-cache search mt-daapd
mt-daapd - iTunes-compatible DAAP server
berni@zero:~$ dpkg -l mt-daapd
No package found that matches mt-daapd
berni@zero:~$
(error message of dpkg translated into english)
For example the php5 package (which is not installed)
berni@zero:~$ dpkg -l php5
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Beschreibung
+++-===
un php5 <keine> (keine Beschreibung vorhanden)
Changed in satega: | |
importance: | Undecided → Low |
ok imho there are 2 possibilities:
A: just use a try catch
B: Use dpkg -s instead.
berni@zero:~$ dpkg -s apache2
Package: apache2
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 100
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: all
...
berni@zero:~$