Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running on Ubuntu 12.04 LTS and am trying to install NX. When using a sudo dpkg command for the plugin (nxplugin_3.5.0-6_i386.deb) I get an error.

I have tried a number of things. Other packages seemed to work but not this one. I have looked around quite a bit and it sounds like it might have something to do with the /var/lib/dpkg/status file but all I see in Line 6 of that is:

Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>

Here is the error:

sudo dpkg -i nxplugin_3.5.0-6_i386.deb
dpkg: error processing nxplugin_3.5.0-6_i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 6 package 'nxplugin':
 blank line in value of field 'Maintainer'
Errors were encountered while processing:
 nxplugin_3.5.0-6_i386.deb

Any help is appreciated. Thanks,

Jeff

share|improve this question
    
Where did you download the deb file from? –  Anwar Shah Sep 22 '12 at 19:18
    
what is your architecture 64bit or 32? –  user61928 Sep 27 '12 at 9:31

3 Answers 3

up vote 2 down vote accepted

You can easily edit the Control file to work around this. Open gedit or nano and type or paste:

#!/bin/bash

if [[ -z "$1" ]]; then
  echo "Syntax: $0 debfile"
  exit 1
fi

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb

if [[ -e "$OUTPUT" ]]; then
  echo "$OUTPUT exists."
  rm -r "$TMPDIR"
  exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
  echo DEBIAN/control not found.

  rm -r "$TMPDIR"
  exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
vi "$CONTROL"

if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
  echo Not modfied.
else
  echo Building new deb...
  dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"

Same the file as debedit.sh, and make it executable with chmod +x debedit.sh.

Then, run debedit.sh nxplugin_3.5.0-6_i386.deb for the file, and edit the correct line (or add it). Save, and then run sudo dpkg -i nxplugin_3.5.0-6_i386.deb.modified.deb (the name may differ a bit), and enjoy!

Source: http://ubuntuforums.org/showthread.php?t=636724

share|improve this answer
    
Thanks FOSS, That worked for me. Quite a re-education. Just a couple of notes for those that may hit this snag too. I had to mod the 777 the permissions of the folder I was working from with the nxplugin file and script. The name DID differ. In the script it is named modfied (no I) instead of modIfied. Simple stuff once you know what works or if you are more familiar than me, but easy to miss. Once I got the nxplugin_3.5.0-6_i386.deb file to edit and save (./debedit.sh nxplugin_3.5.0-6_i386.deb) , just put a space and period in all blank lines and esc + wq! and it ran. Thanks very much! Jeff –  Jeff Sep 22 '12 at 21:49

Sounds like the package is broken (technical: the control file is invalid). Maybe you could ask the author of the package to fix it.

share|improve this answer
    
Hi Florian, I am afraid that might be the case, I have used this and an older version before. Does this mean that there is a change it the package rules? I will check with the author but I could find no one else reporting this so I thought it might be something else. Any other way around going back to the vendor? –  Jeff Sep 22 '12 at 19:29

I attempted to install apache2 on AVLinux and received the empty line in description error message. Here are the steps I went through to fix this problem. I have also provided sample code with [ NOTES: ] so you can see exactly what should and what should not be change in the following files.

Please read this entire post including the supplied code before you start making the changes to your files.

Resolving blank line in value of field 'Description' Errors

While running: sudo dpkg --configure -a

I made the following changes. In /var/lib/dpkg/status file:

Line 1432 error Delete line 1425 and then delete line 1431

Line 15771 error Delete line 15765 and then line 15771

Line 45607 Error Delete line 45608

While running: sudo apt-get install systemd-gui

In /var/lib/dpkg/available File:

Line 2791 error

Delete line 2785 and then line 2791

The lines that are causing your issues may be different than the ones I changed in my files. So start by running the apt-get install command on the package you want to install.

Beginning with the first empty line error: (mine was 1431) right click the indicated file and click open with gedit.

Click 'search' in the menu bar and then click 'Go to line....' and enter the line number.

WARMING: YOU WILL NOT DELETE THE LINE INDICATED IN THE ERROR MESSAGE! YOU WILL BE DELETING one or more lines AFTER the line indicated. 1. Read the following code so that you know what you are looking for.

  1. Delete the empty line or lines in the description area of the package.

  2. Save the file.

  3. Run clear screen

  4. Rerun the apt-get install package command to get next empty line error and line number.

To make it easier to find each of the empty line errors that you encounter; run the clear screen command and then rerun the apt-get install 'package' command. This can be easily achieved by using your up arrow key to choose between the two commands.

There really is no point in retyping the full command when the xterm terminal remembers quite a few of the recent commands you have typed.

I hope this helps you fix your problem.

Read the following code so that you know exactly what you are looking for.

Package: distrho-plugin-ports-old-vst
Priority: optional
Section: sound
Installed-Size: 25528
Maintainer: Glen MacArthur info@bandshed.net
Architecture: i386
Source: distrho
Version: 20140720avlinux6
Depends: libc6 (>= 2.4), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.4.0), libx11-6 (>= 0), libxext6 (>= 0)
Pre-Depends: xz-utils
Breaks: juced-plugins-vst (<< 20120502-0kxstudio1)
Conflicts: juced-plugins-vst (<< 20120502-0kxstudio1)
Size: 10321144
Description: DISTHRO Plugin Ports (VST)
Open-source audio plugins, ported/compiled in Linux by the DISTHRO Team.
. [ NOTE: This line causes an error so delete it ]
These plugins include:
- argotlunar
- bitmangler
- juce-pitcher
- sDelay
- KMeter
[NOTE: This line causes an error so delete it]
This package contains the VST version of these plugins.
[ Note: This line separates packages so do not delete it ]
Package: libgoffice-0.8-dev
Priority: optional
Section: libdevel
Installed-Size: 6232
Maintainer: J.H.M. Dassen (Ray)
Architecture: i386
Source: goffice
Version: 0.8.8-1
Replaces: libgoffice-0-5-dev, libgoffice-0-8-dev
Depends: libgoffice-0.8-8 (= 0.8.8-1), libglib2.0-dev (>= 2.16.0), libxml2-dev (>= 2.6.10-2), libgtk2.0-dev (>= 2.8.17), libglade2-dev (>= 1:2.4.0), libcairo2-dev (>= 1.2.0), libgconf2-dev, libgsf-1-dev (>= 1.14.9)
Breaks: libgoffice-0-5-dev, libgoffice-0-8-dev, libgoffice-0-dev (<< 0.4.2-2)
Size: 1200860
Description: Document centric objects library - runtime files
GOffice is a library of document centric objects and utilities building on
top of GLib and Gtk+.
. [ NOTE: This line causes an error so delete it ]
These are the files needed when building applications that use GOffice.
[ Note: This line separates packages so do not delete it ]
Package: karbon

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.