# [Tex/LaTex] tlmgr cannot setup TLPDB

errorstexliveUbuntu

I'm trying to update my installation of texlive 2013 under Ubuntu 13.10.
However, I followed the instruction on this answer, but I get an error

(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/USER/texmf at /usr/bin/tlmgr line 5308.

I tried searching for this error but it got me nowhere. I'm used to work with MikTex on Windows, but now I'm migrating to Ubuntu and get no idea what went wrong. Any pointers are welcome.

Sorry to reactivate this old post but there was no correct answer.

The message :

(running on Debian, switching to user mode!) cannot setup TLPDB in /home/USER/texmf at /usr/bin/tlmgr line 5308.

is generated when tlmgr was not initialized. In most cases, launching the following command (as a normal user) solves the problem :

 \$ tlmgr init-usertree


This command will create few folders inside your home directory. See the man page for explanation :

Before using tlmgr in user mode, you have to set up the user tree with the init-usertree action. This creates usertree/web2c and usertree/tlpkg/tlpobj, and a minimal usertree/tlpkg/texlive.tlpdb. At that point, you can tell tlmgr to do the (supported) actions by adding the --usermode command line option.