garabik/grc

Error when installing the deb package on Ubunto 14.04 LTS

Opened this issue · 1 comments

I get this error on Ubuntu 14.04 LTS (this is the sudo enabled version of Ubuntu on Travis-CI).

subprocess dpkg-deb --control returned error exit status 2

Any ideas what causes this error and how to solve it?

Here is the full error log:

Downloading grc.deb from https://korpus.sk/~garabik/software/grc/grc_1.11.3-1_all.deb...
Download [SUCCESSFUL]
Installing grc.deb... 
dpkg-deb: error: archive 'grc.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive grc.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 grc.deb
Installation [FAILED]

This is my download/install/setup script:

# install grcat
if [ -e $GRC_DEB ]; then
  echo -e "${CYAN}Installing $GRC_DEB... ${NOCOLOR}"
  sudo dpkg -i $GRC_DEB
  if [ $? -eq 0 ]; then
    echo -e "${GREEN}Installation [SUCCESSFUL]${NOCOLOR}"
  else
    echo 1>&2 -e "${RED}Installation [FAILED]${NOCOLOR}"
    exit 1
  fi
fi

Full Sources: https://github.com/VLSI-EDA/PoC/blob/master/tools/Travis-CI/grc.setup.sh?ts=2


Related issues:

What's your version of dpkg? The first version that supports .xz is 1.17.5ubuntu5.8, that comes with trusty-updates (but not trusty itself). If you do not want to upgrade, you can download and install just the dpkg package: https://packages.ubuntu.com/trusty-updates/dpkg (it is also quite handy when you want to upgrade to e.g. bionic, the upgrade will otherwise crash and leave your system in an unusable state).