thailatex and texlive-latex-base errors when upgrading from 12.04 -> 12.10

Bug #1027661 reported by Jan Groenewald
42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
thailatex (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

sudo apt-add-repository ppa:texlive-backports/ppa; sudo apt-get update; sudo apt-get dist-upgrade;
...
Processing triggers for thailatex ...
Customizing babel.sty...failed: system babel.sty does not exists.
Warning: you will not be able to use [thai] option directly in \documentclass.
postinst called with unknown argument 'triggered'
dpkg: error processing thailatex (--unpack):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 thailatex
E: Sub-process /usr/bin/dpkg returned an error code (1)
100 jan@osprey:~$ sudo dpkg --configure texlive-latex-base
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-binaries (>= 2012-0); however:
  Version of texlive-binaries on system is 2009-11ubuntu2.
 texlive-latex-base depends on texlive-common (>= 2012.20120516); however:
  Version of texlive-common on system is 2009-15.
 texlive-latex-base depends on tex-common (>= 3); however:
  Version of tex-common on system is 2.10.
 texlive-latex-base depends on texlive-base (>= 2012.20120516); however:
  Version of texlive-base on system is 2009-15.
dpkg: error processing texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 texlive-latex-base
1 jan@osprey:~#

Tags: bot-comment
Revision history for this message
Jan Groenewald (jan-aims) wrote :

Sorry, that is on Ubuntu 12.04.

Revision history for this message
Jan Groenewald (jan-aims) wrote :
Download full text (3.7 KiB)

There are a number of third party packages installed; they come only with dependencies like texlive-full and texlive-latex-recommended.

E: Unmet dependencies. Try using -f.
100 root@osprey:~#apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  latex-cjk-xcjk
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  context latex-cjk-all latex-cjk-chinese latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphic-bsmi00lp latex-cjk-chinese-arphic-gbsn00lp
  latex-cjk-chinese-arphic-gkai00mp latex-cjk-common latex-cjk-japanese latex-cjk-japanese-wadalab latex-cjk-korean latex-cjk-thai
  latex-fonts-thai-tlwg latex-sanskrit libgraphite3 libkpathsea6 libptexenc1 luatex musixtex tex-common texlive-base texlive-binaries texlive-common
  texlive-doc-base texlive-font-utils texlive-metapost texlive-xetex tipa
Suggested packages:
  perl-tk fontforge context-nonfree context-doc-nonfree hbf-cns40-b5 hbf-jfs56 fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp
  fonts-arphic-gkai00mp hbf-kanji48 pmx m-tx
The following packages will be REMOVED:
  aims-desktop-extra aims-desktop-standard aims-latex-extra aims-latex-standard aims-science-extra aims-science-standard asymptote cadabra dblatex
  feynmf fragmaster latex2html prosper sagemath-optional sagemath-upstream-binary texlive-doc-en texlive-doc-es texlive-doc-fi texlive-doc-fr
  texlive-doc-it texlive-doc-ja texlive-doc-ko texlive-doc-mn texlive-doc-nl texlive-doc-pl texlive-doc-pt texlive-doc-ru texlive-doc-si
  texlive-doc-th texlive-doc-tr texlive-doc-uk texlive-doc-vi texlive-doc-zh texlive-extra-utils texlive-fonts-extra texlive-fonts-extra-doc
  texlive-fonts-recommended-doc texlive-formats-extra texlive-full texlive-games texlive-generic-extra texlive-generic-recommended texlive-humanities
  texlive-humanities-doc texlive-lang-african texlive-lang-arabic texlive-lang-armenian texlive-lang-croatian texlive-lang-cyrillic
  texlive-lang-czechslovak texlive-lang-danish texlive-lang-dutch texlive-lang-finnish texlive-lang-french texlive-lang-german texlive-lang-greek
  texlive-lang-hebrew texlive-lang-hungarian texlive-lang-indic texlive-lang-italian texlive-lang-latin texlive-lang-latvian texlive-lang-lithuanian
  texlive-lang-mongolian texlive-lang-norwegian texlive-lang-other texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish
  texlive-lang-swedish texlive-lang-tibetan texlive-lang-vietnamese texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc
  texlive-latex-recommended-doc texlive-luatex texlive-math-extra texlive-metapost-doc texlive-music texlive-omega texlive-pictures
  texlive-pictures-doc texlive-plain-extra texlive-pstricks texlive-pstricks-doc texlive-publishers texlive-publishers-doc texlive-science
  texlive-science-doc
The following NEW packages will be installed:
  libgraphite3 libkpathsea6 libptexenc1
The following packages will be upgraded:
  context latex-cjk-all latex-cjk-chinese latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphi...

Read more...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1027661/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → texlive-base (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: texlive-backports thailatex and texlive-latex-base errors

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in texlive-base (Ubuntu):
status: New → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

I believe a no-change rebuild of the package should fix the problem.

affects: texlive-base (Ubuntu) → thailatex (Ubuntu)
summary: - texlive-backports thailatex and texlive-latex-base errors
+ thailatex and texlive-latex-base errors when upgrading from 12.04 ->
+ 12.10
Revision history for this message
Julian Taylor (jtaylor) wrote :

a rebuild was done in quantal to get the package xz compressed
is this still an issue?

Changed in thailatex (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 1027661] Re: thailatex and texlive-latex-base errors when upgrading from 12.04 -> 12.10

Hi

On 8 September 2012 11:59, Julian Taylor <email address hidden>wrote:

> a rebuild was done in quantal to get the package xz compressed
> is this still an issue?
>
>
It persists.

 Processing triggers for thailatex ...
Customizing babel.sty...failed: system babel.sty does not exists.
Warning: you will not be able to use [thai] option directly in
\documentclass.
postinst called with unknown argument 'triggered'
dpkg: error processing thailatex (--unpack):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 thailatex
E: Sub-process /usr/bin/dpkg returned an error code (1)
100 root@sainthelena:~#

Note the title of the bug is about 12.04-12.10 upgrade.
I am doing on 12.04 64bit

apt-add-repository ppa:texlive-backports/ppa
apt-get update
apt-get dist-upgrade

which leads to above error.

Regards,
Jan

** Changed in: thailatex (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1027661
>
> Title:
> thailatex and texlive-latex-base errors when upgrading from 12.04 ->
> 12.10
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/thailatex/+bug/1027661/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Julian Taylor (jtaylor) wrote :

confirmed in an 12.04 -> 12.10 upgrade
it tries to trigger thailatex before tex is configured.

Changed in thailatex (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

Just seen this via Debian QA page.

So, it seemed the initial problem was caused by an old tex-common, as fixed here:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648697

Then, the last trigger problem after the rebuild should be caused by the new texlive files being moved from /usr/share/texmf-texlive to /usr/share/texlive/texlive-dist, and thailatex trigger watch was not updated accordingly. It's weird that I cannot reproduce this with Debian squeeze->wheezy upgrade, though. So, I can't be sure if my guess is correct.

If I'm correct, this patch should fix it. Could you try it out? If it works, I'll upload the fix to Debian and let's request for a sync to Ubuntu.

diff --git a/debian/triggers b/debian/triggers
index 32e4f57..78d80cd 100644
--- a/debian/triggers
+++ b/debian/triggers
@@ -1 +1 @@
-interest /usr/share/texmf-texlive/tex/generic/babel/babel.sty
+interest /usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty

Revision history for this message
Jan Groenewald (jan-aims) wrote :
Download full text (3.3 KiB)

Hi

How can I test it?

I did

apt-add-repository ppa:texlive-backports/ppa
apt-get update
apt-get source thailatex
apt-get install build-essential devscripts
tar xvzf thailatex_0.4.7-3~precise1.debian.tar.gz
apt-get build-dep thailatex
cd thailtex-0.4.7
vim debian/triggers

and I seem to be stuck in a catch-22 trying to get tex-common:
(ignore the bad practice of building as root; this is a desktop that
will be re-imaged immediately after this test)

0 root@sudan:~/thailatex-0.4.7#debuild -b
 dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
-D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor):
-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g
-O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
-Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package thailatex
dpkg-buildpackage: source version 0.4.7-3~precise1
dpkg-buildpackage: source changed by Jeremy Bicha <email address hidden>
 dpkg-source --before-build thailatex-0.4.7
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: Unmet build dependencies: tex-common (>= 3.4)
texlive-latex-base
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied;
aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1350:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
29 root@sudan:~/thailatex-0.4.7#

Regards,
Jan

On 3 October 2012 07:46, Theppitak Karoonboonyanan <email address hidden>wrote:

> Just seen this via Debian QA page.
>
> So, it seemed the initial problem was caused by an old tex-common, as
> fixed here:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648697
>
> Then, the last trigger problem after the rebuild should be caused by the
> new texlive files being moved from /usr/share/texmf-texlive to
> /usr/share/texlive/texlive-dist, and thailatex trigger watch was not
> updated accordingly. It's weird that I cannot reproduce this with Debian
> squeeze->wheezy upgrade, though. So, I can't be sure if my guess is
> correct.
>
> If I'm correct, this patch should fix it. Could you try it out? If it
> works, I'll upload the fix to Debian and let's request for a sync to
> Ubuntu.
>
> diff --git a/debian/triggers b/debian/triggers
> index 32e4f57..78d80cd 100644
> --- a/debian/triggers
> +++ b/debian/triggers
> @@ -1 +1 @@
> -interest /usr/share/texmf-texlive/tex/generic/babel/babel.sty
> +interest /usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
>
>
> ** Bug watch added: Debian Bug tracker #648697
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648697
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1027661
>
> Title:
> thailatex and texlive-latex-base errors when upgrading from 1...

Read more...

Revision history for this message
eris23 (jdkatz23) wrote :

I just encountered this problem on a precise to quantal amd64 upgrade.

Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

From comment #7

> postinst called with unknown argument 'triggered'

Wait.. The last sympthom was still the same. It's not about trigger change, then. This problem is caused by tex-common generated postinst. (See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648697 for more info.)

It's supposed to be fixed since tex-common 3.4. It's weird that this still persists.
Let's reassign this bug to tex-common, though.

Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

Ah, I see. tex-common in Precise is still 2.10. How can we get newer one?

The latest version is 3.13. And thailatex requires tex-common (>= 3.4). How did the build pass in the first place?

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Hi

On 3 October 2012 10:34, Theppitak Karoonboonyanan <email address hidden>wrote:

> The latest version is 3.13. And thailatex requires tex-common (>= 3.4).
> How did the build pass in the first place?
>

I am testing texlive-backports on precise, though other users experience
this problem
on an upgrade to quantal as well.

Regards,
Jan

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

On Wed, Oct 3, 2012 at 4:38 PM, Jan Groenewald <email address hidden> wrote:
>
> On 3 October 2012 10:34, Theppitak Karoonboonyanan
> <email address hidden>wrote:
>
>> The latest version is 3.13. And thailatex requires tex-common (>= 3.4).
>> How did the build pass in the first place?
>
> I am testing texlive-backports on precise, though other users experience
> this problem
> on an upgrade to quantal as well.

And tex-common version in the backports is?
(Sorry, I have no idea about versions in Ubuntu.)

The point is that thailatex should be built against tex-common (>= 3.4)
to get rid of the postinst error.

For quantal, I've checked the 0.5.0-2 binary deb [1], and the buggy code
has been removed from postinst. So, the bug should be gone.

  [1] ftp://ftp.ubuntu.com/ubuntu/pool/universe/t/thailatex/thailatex_0.5.0-2_all.deb

Regards,
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Hi

If I install that thailatex deb manually wiht dpkg,
then tex-common manages to finish configuring.

0 root@sudan:~#dpkg --configure -a
Processing triggers for tex-common ...
Running mktexlsr. This may take some time... done.
Running mtxrun --generate. This may take some time... done.
Building latex-based formats --byhyphen
/var/lib/texmf/tex/generic/config/language.dat.
    This may take some time... done.
Building e-tex based formats --byhyphen
/var/lib/texmf/tex/generic/config/language.def.
    This may take some time... done.
0 root@sudan:~#

Will this fix make it into the texlive-backports PPA for precise?

Regards,
Jan

On 3 October 2012 12:21, Theppitak Karoonboonyanan <email address hidden>wrote:

> On Wed, Oct 3, 2012 at 4:38 PM, Jan Groenewald <email address hidden> wrote:
> >
> > On 3 October 2012 10:34, Theppitak Karoonboonyanan
> > <email address hidden>wrote:
> >
> >> The latest version is 3.13. And thailatex requires tex-common (>= 3.4).
> >> How did the build pass in the first place?
> >
> > I am testing texlive-backports on precise, though other users experience
> > this problem
> > on an upgrade to quantal as well.
>
> And tex-common version in the backports is?
> (Sorry, I have no idea about versions in Ubuntu.)
>
> The point is that thailatex should be built against tex-common (>= 3.4)
> to get rid of the postinst error.
>
> For quantal, I've checked the 0.5.0-2 binary deb [1], and the buggy code
> has been removed from postinst. So, the bug should be gone.
>
> [1]
>
> ftp://ftp.ubuntu.com/ubuntu/pool/universe/t/thailatex/thailatex_0.5.0-2_all.deb
>
> Regards,
> --
> Theppitak Karoonboonyanan
> http://linux.thai.net/~thep/
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1027661
>
> Title:
> thailatex and texlive-latex-base errors when upgrading from 12.04 ->
> 12.10
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/thailatex/+bug/1027661/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

On Wed, Oct 3, 2012 at 7:01 PM, Jan Groenewald <email address hidden> wrote:

> If I install that thailatex deb manually wiht dpkg,
> then tex-common manages to finish configuring.

You mean the deb from quantal? That's because it's built with
tex-common in quantal, not because tex-common in older system
works it out.

> Will this fix make it into the texlive-backports PPA for precise?

Please make sure tex-common is also upgraded in the backports.
Otherwise, when one rebuilds the package from source, it would
fail to upgrade again.

Regards,
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Hi

On 3 October 2012 15:16, Theppitak Karoonboonyanan <email address hidden>wrote:

> On Wed, Oct 3, 2012 at 7:01 PM, Jan Groenewald <email address hidden> wrote:
>
> > If I install that thailatex deb manually wiht dpkg,
> > then tex-common manages to finish configuring.
>
> You mean the deb from quantal? That's because it's built with
> tex-common in quantal, not because tex-common in older system
> works it out.
>

I mean the deb to which you posted a link:
ftp://ftp.ubuntu.com/ubuntu/pool/universe/t/thailatex/thailatex_0.5.0-2_all.deb

>
> > Will this fix make it into the texlive-backports PPA for precise?
>
> Please make sure tex-common is also upgraded in the backports.
> Otherwise, when one rebuilds the package from source, it would
> fail to upgrade again.
>

This says tex-common 3.13 :
https://launchpad.net/~texlive-backports/+archive/ppa

I am not affiliated with them. I cc the maintainer.

Regards,
Jan

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Theppitak Karoonboonyanan (thep) wrote :

On Wed, Oct 3, 2012 at 8:38 PM, Jan Groenewald <email address hidden> wrote:

> This says tex-common 3.13 :
> https://launchpad.net/~texlive-backports/+archive/ppa

OK. That's more than sufficient.

Regards,
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/

Revision history for this message
Moritz Schappler (schappler) wrote :

I know this is an old development thread, but since it is one of the first results on Google:
How did you resolve this package conflict?

I tried several commands like
apt-get install -f
apt-get remove texlive*
apt-get purge texlive*
but none of them resolved the conflict.

My machine became completely stuck between 12.04 and 14.04 with no window manager working and only terminal with ctrl+alt+F1

Regards,

Moritz

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Hi Moritz

Try

apt-get -y purge tex-common # you may even have to dpkg -fP tex-common, if
that works didn't check the syntax now
dpkg --configure -a
apt-get -f install
apt-get -y dist-upgrade

Regards,
Jan

On 13 January 2015 at 15:54, Moritz Schappler <<email address hidden>
> wrote:

> I know this is an old development thread, but since it is one of the first
> results on Google:
> How did you resolve this package conflict?
>
> I tried several commands like
> apt-get install -f
> apt-get remove texlive*
> apt-get purge texlive*
> but none of them resolved the conflict.
>
> My machine became completely stuck between 12.04 and 14.04 with no
> window manager working and only terminal with ctrl+alt+F1
>
> Regards,
>
> Moritz
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1027661
>
> Title:
> thailatex and texlive-latex-base errors when upgrading from 12.04 ->
> 12.10
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/thailatex/+bug/1027661/+subscriptions
>

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.