salt icon indicating copy to clipboard operation
salt copied to clipboard

Update Salt-Minion on Ubuntu 12.04 LTS fails

Open RobertFach opened this issue 11 years ago • 8 comments

Updating salt-minion from 0.17.5 but also from 2014.1.10 fails with the following problem:

Vorbereitung zum Ersetzen von salt-common 0.17.5-1precise1 (durch .../salt-common_2014.7.0+ds-2precise3_all.deb) ...
Removing stale pyc files
find: "/usr/lib/python2.7/dist-packages/salt/": Datei oder Verzeichnis nicht gefunden
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/salt-common_2014.7.0+ds-2precise3_all.deb (--unpack):
 Unterprozess neues pre-installation-Skript gab den Fehlerwert 1 zurück

It can be workaround by creating the directory that let the find call fail...

mkdir /usr/lib/python2.7/dist-packages/salt/

I'm using the packages from launchpad:ppa offical repo.

RobertFach avatar Dec 19 '14 13:12 RobertFach

Vorbereitung zum Ersetzen von salt-common 2014.1.3-2precise1 (durch .../salt-common_2014.7.0+ds-2precise3_all.deb) ...
Removing stale pyc files
find: "/usr/lib/python2.7/dist-packages/salt/": Datei oder Verzeichnis nicht gefunden
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/salt-common_2014.7.0+ds-2precise3_all.deb (--unpack):
 Unterprozess neues pre-installation-Skript gab den Fehlerwert 1 zurück
Trigger für python-support werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/salt-common_2014.7.0+ds-2precise3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

RobertFach avatar Dec 19 '14 13:12 RobertFach

Thanks for the info.. are you seeing this only with the latest pkg update, or have you tried others?

pitatus avatar Jan 05 '15 21:01 pitatus

Sorry, last updates have been done a while ago and the cluster was not in sync... I can only report for the latest update to 2014.7.0.

RobertFach avatar Jan 06 '15 08:01 RobertFach

This looks like a packaging issue, maybe a python helper for the packaging doesn't work correctly. Did you change the way how the debian/ubuntu (python) packages are generated in the past?

RobertFach avatar Jan 06 '15 09:01 RobertFach

not sure.. a question for the packager/s (adding tag)

pitatus avatar Jan 06 '15 16:01 pitatus

The ubuntu (debian?) script(s) seem to be looking in the wrong place for removing *.py? files. I will be sure to look at this before 2015.2.0 and/or 2014.7.3 comes out.

jfindlay avatar Feb 27 '15 19:02 jfindlay

This is also affecting us as we're updating to latest from an ancient version. The salt-common.preinst script needs to guard the find command with if [ -d /usr/lib/python2.7/dist-packages/salt/ ]; then to work. I found the preinst script here: http://anonscm.debian.org/cgit/pkg-salt/salt.git/tree/debian/salt-common.preinst?h=ubuntu-precise. I'd open a pull request but I can't seem to find that on github.

bsundsrud avatar Aug 18 '15 17:08 bsundsrud

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Dec 20 '17 16:12 stale[bot]