musicserver apt install check error

Bug #321706 reported by bernhard
4
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=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Beschreibung
+++-==============-==============-============================================
un php5 <keine> (keine Beschreibung vorhanden)

bernhard (bernhardredl)
Changed in satega:
importance: Undecided → Low
Revision history for this message
bernhard (bernhardredl) wrote :

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:~$

Revision history for this message
Svein Hansen (sveinhansen) wrote :

I'm not able to re-produce this on my system. I also do not get this error on a fresh ubuntu server install.

1) Could you please try to to dpkg -s mt-daadp. Does that work as with your apache example above?

2) Also, please try to do:

sudo apt-get purge mt-daapd
sudo apt-get clean
sudo apt-get autoclean

Then try installing the music server from the configuration page again.

Thanks!

Revision history for this message
Svein Hansen (sveinhansen) wrote :

Investigating

Changed in satega:
assignee: nobody → sveinhansen
Revision history for this message
bernhard (bernhardredl) wrote :

ok the strange thing is that dpkg -i mt-daapd does also not work
> package / file not found

but i have an idea. Is it possible that apt-cache and dpkg maintan different packages infos?

For example if you search with apt-cache search php
you get about 100 results with php in the package name.

If you do an dpkg -l *php* you just get 7 results.
maybe dpkg -l is the false way to check if a package is installed.

i added a patch which solves the problem

Revision history for this message
bernhard (bernhardredl) wrote :

any updates on this bug ?

Revision history for this message
bernhard (bernhardredl) wrote :

fixed the bug by implementing the patch

Changed in satega:
assignee: sveinhansen → bernhardredl
status: New → Fix Committed
Revision history for this message
bernhard (bernhardredl) wrote :

thus we dont have any release version

Changed in satega:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.