maas-cluster-controller.postinst failing with an unterminated sed error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Fix Released
|
Medium
|
Diogo Matsubara |
Bug Description
maas-cluster-
Setting up maas-cluster-
1) ...
sed: -e expression #1, char 23: unterminated `s' command
dpkg: error processing maas-cluster-
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin ...
I added set -x to the /var/lib/
Notice there are two bugs here:
+ RET= http://
and the bug that's causing the error on line 86 of maas-cluster-
sed -i "s|MAAS_
which works when it's like: sed -i "s|MAAS_
ubuntu@
Reading package lists... Done
Building dependency tree
Reading state information... Done
maas-cluster-
The following packages were automatically installed and are no longer required:
linux-
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up maas-cluster-
+ . /usr/share/
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/
+ . /usr/share/
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ db_version 2.0
+ _db_cmd VERSION 2.0
+ _db_internal_IFS=
+ IFS=
+ printf %s\n VERSION 2.0
+ IFS=
+ IFS=
read -r _db_internal_line
+ RET=2.0
+ return 0
+ [ configure = configure ]
+ [ -z ]
+ create_log_dir
+ [ ! -d /var/lib/maas ]
+ [ ! -d /var/log/maas/oops ]
+ chown -R maas:maas /var/lib/maas/
+ chown -R maas:maas /var/log/maas
+ chmod -R 775 /var/log/maas/oops
+ configure_maas_tgt
+ local tgtcfg=
+ [ -d /etc/tgt/conf.d/ ]
+ mkdir -p /etc/tgt/conf.d/ /var/lib/
+ ln -sf /var/lib/
+ [ configure = configure ]
+ [ -z ]
+ dpkg --compare-versions lt 0.1+bzr1239+
+ create_log_dir
+ [ ! -d /var/lib/maas ]
+ [ ! -d /var/log/maas/oops ]
+ chown -R maas:maas /var/lib/maas/
+ chown -R maas:maas /var/log/maas
+ chmod -R 775 /var/log/maas/oops
+ db_get maas-cluster-
+ _db_cmd GET maas-cluster-
+ _db_internal_IFS=
+ IFS=
+ printf %s\n GET maas-cluster-
+ IFS=
+ IFS=
read -r _db_internal_line
+ RET= http://
+ return 0
+ [ -n http://
+ sed -i s|MAAS_
sed: -e expression #1, char 23: unterminated `s' command
dpkg: error processing maas-cluster-
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
maas-cluster-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Related branches
- Julian Edwards (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifieddebian/maas-cluster-controller.postinst (+1/-1)
- Raphaël Badin (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifieddebian/maas-cluster-controller.postinst (+1/-1)
- Raphaël Badin (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifieddebian/maas-cluster-controller.postinst (+1/-1)
Changed in maas (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in maas (Ubuntu): | |
status: | Fix Committed → Fix Released |
This also affects the precise and quantal packaging branches so it's probably worth fixing it there too.