In my texlive installation (in ubuntu 15.04), I tried installing framed.sty latex package with the following command:
$ tlmgr install framed
I got this error message:
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/myusername/texmf at /usr/bin/tlmgr line 5435.
I took the following steps:
$ cd ~
$ mkdir texmf
$ tlmgr init-usertree
I tried to install the framed.sty latex package again with the command:
$ tlmgr install framed
I got this error message:
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.
tlmgr: exiting unsuccessfully (status 1).
So, I installed xzdec and I tried to install the package again:
$ sudo apt-get install xzdec
$ tlmgr install framed
It worked!
(running on Debian, switching to user mode!)
tlmgr: package repository http://linorg.usp.br/CTAN/systems/texlive/tlnet
[1/1, ??:??/??:??] install: framed [8k]
tlmgr: package log updated: /home/myusername/texmf/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.
/usr/bin
, which I don't recommend. It's much better to add the path to the TeX Live binaries to thePATH
environment variable. It's possible that you have also the Debian provided TeX Live and, if some package has been installed later than the vanilla TeX Live,tlmgr
gets confused.apt-get
doesn't providetlmgr
; and the instruction you refer to don't useapt-get
.apt-get
fortexlive
and use How to install "vanilla" TeXLive on Debian or Ubuntu?tlmgr
is included in packagetexlive-base
in Ubuntu 13.10, preset to run in user mode. The first line in the documentation is a warning that one should expect breakage.