"link group ps2pdf is broken"

Bug #407998 reported by Noel J. Bergman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Upon any upgrades of Ghostscript (Karmic upgraded from Jaunty):

  Setting up ghostscript (8.70.dfsg.1-0ubuntu1) ...
  update-alternatives: using /usr/bin/ps2pdf14 to provide /usr/bin/ps2pdf (ps2pdf) in auto mode.
  update-alternatives: warning: not replacing /usr/bin/ps2pdf with a link.
  update-alternatives: warning: forcing reinstallation of alternative /usr/bin/ps2pdf14 because link group ps2pdf is broken.
  update-alternatives: warning: not replacing /usr/bin/ps2pdf with a link.
  update-alternatives: warning: forcing reinstallation of alternative /usr/bin/ps2pdf14 because link group ps2pdf is broken.
  update-alternatives: warning: not replacing /usr/bin/ps2pdf with a link.

Checking /usr/bin/ps2*:
  $ ls -ld /usr/bin/ps2*
  -rwxr-xr-x 1 root root 786 2009-08-01 12:49 /usr/bin/ps2ascii
  -rwxr-xr-x 1 root root 2822 2009-08-01 12:49 /usr/bin/ps2epsi
  -rwxr-xr-x 1 root root 315 2009-08-01 12:49 /usr/bin/ps2pdf
  -rwxr-xr-x 1 root root 260 2009-08-01 12:49 /usr/bin/ps2pdf12
  -rwxr-xr-x 1 root root 260 2009-08-01 12:49 /usr/bin/ps2pdf13
  -rwxr-xr-x 1 root root 260 2009-08-01 12:49 /usr/bin/ps2pdf14
  -rwxr-xr-x 1 root root 1127 2009-08-01 12:49 /usr/bin/ps2pdfwr
  -rwxr-xr-x 1 root root 673 2009-08-01 12:49 /usr/bin/ps2ps
  -rwxr-xr-x 1 root root 704 2009-08-01 12:49 /usr/bin/ps2ps2
  lrwxrwxrwx 1 root root 8 2009-08-02 08:33 /usr/bin/ps2txt -> ps2ascii

Notice that ps2pdf is not a symlink. Instead it contains:

  #!/bin/sh
  # $Id: ps2pdf 8107 2007-07-05 19:04:29Z till $
  # Convert PostScript to PDF.

  # Currently, we produce PDF 1.4 by default, but this is not guaranteed
  # not to change in the future.
  version=14

  ps2pdf="`dirname $0`/ps2pdf$version"
  if test ! -x "$ps2pdf"; then
   ps2pdf="ps2pdf$version"
  fi
  exec "$ps2pdf" "$@"

Checking /etc/alternatives:

  $ ls -l /etc/alternatives/ps2pdf
  lrwxrwxrwx 1 root root 17 2009-08-02 08:33 /etc/alternatives/ps2pdf -> /usr/bin/ps2pdf14

The alternatives setup and the current shell script are effectively the same, but we should decide which approach we want to talk, and execute it. Either remove /usr/bin/ps2pdf and replace it with a symlink to /etc/alternatives/ps2pdf or remove the link setup so that the install doesn't complain.

Changed in ghostscript (Ubuntu):
status: New → Confirmed
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.