Parse error during gnuradio installation

Bug #1769432 reported by Dennis Real
78
This bug affects 16 people
Affects Status Importance Assigned to Milestone
gnuradio (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

See "Trigger für shared-mime-info" in the installation log below:

root@foo:/etc/apt# apt install gnuradio gr-fosphor gnuradio-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Empfohlene Pakete:
  python-qwt-qt5
Die folgenden NEUEN Pakete werden installiert:
  gnuradio gnuradio-dev gr-fosphor
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 8.914 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 93,6 MB Plattenplatz zusätzlich benutzt.
Holen:1 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 gnuradio amd64 3.7.11-10 [8.448 kB]
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 gnuradio-dev amd64 3.7.11-10 [381 kB]
Holen:3 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 gr-fosphor amd64 3.7.0.2.7b6b996-2 [84,3 kB]
Es wurden 8.914 kB in 1 min 13 s geholt (122 kB/s).
Vormals nicht ausgewähltes Paket gnuradio wird gewählt.
(Lese Datenbank ... 565831 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../gnuradio_3.7.11-10_amd64.deb ...
Entpacken von gnuradio (3.7.11-10) ...
Vormals nicht ausgewähltes Paket gnuradio-dev:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../gnuradio-dev_3.7.11-10_amd64.deb ...
Entpacken von gnuradio-dev:amd64 (3.7.11-10) ...
Vormals nicht ausgewähltes Paket gr-fosphor wird gewählt.
Vorbereitung zum Entpacken von .../gr-fosphor_3.7.0.2.7b6b996-2_amd64.deb ...
Entpacken von gr-fosphor (3.7.0.2.7b6b996-2) ...
Trigger für mime-support (3.60ubuntu1) werden verarbeitet ...
Trigger für desktop-file-utils (0.23-1ubuntu3) werden verarbeitet ...
Trigger für gnome-icon-theme (3.12.0-3) werden verarbeitet ...
Trigger für bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) werden verarbeitet ...
Rebuilding /usr/share/applications/bamf-2.index...
gnuradio (3.7.11-10) wird eingerichtet ...
Trigger für man-db (2.8.3-2) werden verarbeitet ...
Trigger für shared-mime-info (1.9-2) werden verarbeitet ...
/usr/share/mime/packages/gnuradio.xml:1: parser error : Start tag expected, '<' not found
/usr/share/gnuradio/grc/freedesktop/gnuradio-grc.xml
^
Failed to parse '/usr/share/mime/packages/gnuradio.xml'
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Trigger für gnome-menus (3.13.3-11ubuntu1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.17-2) werden verarbeitet ...
gnuradio-dev:amd64 (3.7.11-10) wird eingerichtet ...
gr-fosphor (3.7.0.2.7b6b996-2) wird eingerichtet ...

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnuradio 3.7.11-10 [modified: usr/share/mime/application/gnuradio-grc.xml]
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun May 6 10:28:47 2018
InstallationDate: Installed on 2016-04-30 (736 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: gnuradio
UpgradeStatus: Upgraded to bionic on 2018-05-02 (3 days ago)

Revision history for this message
Dennis Real (x-ubunmuone-z) wrote :
Revision history for this message
Gilles Gravier (gillesgravier) wrote :

Same problem here. Ubuntu 18.04 latest updates.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnuradio (Ubuntu):
status: New → Confirmed
Revision history for this message
Mario Baldini (mario.baldini) wrote :

Confirmed on:
```
Ubuntu 18.04.1 LTS
GNU Radio Companion 3.7.11 (from official apt repo)
Linux 4.18.0-041800-generic
System updated as of 2018-08-15
```

Revision history for this message
Mathias Neumann (alfrede) wrote :

Hi there,

i have the same error, and when i look into the file: /usr/share/mime/packages/gnuradio.xml

the content is:

/usr/share/gnuradio/grc/freedesktop/gnuradio-grc.xml

in all the other xmls which are in this directory they begin which:

<?xml version="1.0"?>

Could this be the error?

Tanks

Revision history for this message
Mathias Neumann (alfrede) wrote :

For Comment 5

Revision history for this message
Mathias Neumann (alfrede) wrote :
Revision history for this message
SirG (sirg-nj) wrote :

Looks like gnuradio.xml is supposed to either have the same contents as gnuradio-grc.xml or be a (sym?)link to the latter.

Workaround: make it a symlink to stop the error from showing up on every apt install.

Revision history for this message
donpdonp (don-park) wrote :

thanks for the help, every apt operation was complaining because it could not parse gnuradio.xml.

Processing triggers for shared-mime-info (1.9-2) ...
/usr/share/mime/packages/gnuradio.xml:1: parser error : Start tag expected, '<' not found

It looks like the contents of the file were replaced with the filename of what should have been the symlink, so fixing itup by hand seems to work.

# rm /usr/share/mime/packages/gnuradio.xml
# ln -s /usr/share/gnuradio/grc/freedesktop/gnuradio-grc.xml /usr/share/mime/packages/gnuradio.xml

this is on Ubuntu 18.04 with gnuradio 3.7.11-10:amd64.

gnuradio_3.7.11-10.debian.tar.xz:debian/patches/direct-freedesktop-install contains the files:

+# Install mime
+install(FILES gnuradio-grc.xml DESTINATION share/mime/packages)

which look ok, so not sure why its failing to create the file correctly.

Revision history for this message
John Kilcoyne (boatman1900) wrote :

Same bug with all updates and upgrades on 18.04lts

have compared above files and they match mine

/usr/share/mime/packages/gnuradio.xml:1: parser error : Start tag expected, '<' not found
/usr/share/gnuradio/grc/freedesktop/gnuradio-grc.xml
^
Failed to parse '/usr/share/mime/packages/gnuradio.xml'

Looked at files not sue what is wrong

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.