scottkosty / install-tl-ubuntu

Install script for TeX Live on Ubuntu
GNU General Public License v2.0
524 stars 52 forks source link

install script not finding `install-tl` dir #12

Closed kulicuu closed 10 years ago

kulicuu commented 10 years ago

This after running ./install-tl-ubuntu:

...

install-tl-ubuntu: downloading and extracting install-tl for time number 1...
install-tl-ubuntu: install-tl downloaded and extracted successfully.
install-tl-ubuntu: ERROR: cannot find install-tl dir to cd into.

When I run ls on the dir:

AUTHORS                        install-tl-2.log   install-tl-ubuntu_EXTRAS.log
debian-control-texlive-in.txt  install-tl-3.log   install-tl-unx.tar.gz
example.profile                install-tl-4.log   LICENSE
findEquivs                     install-tl-5.log   mirrorCandidates.log
install-tl-1.log               install-tl-6.log   mirrorWgets.log
install-tl-20140817            install-tl-7.log   README.md
install-tl-20140818            install-tl-ubuntu
scottkosty commented 10 years ago

Hi kulicuu,

Thanks a lot for your report and sorry for the bug. I think I understand what's going on. First, you have several install-tl-n.log files. This suggests that your connection to the mirror is being interrupted. The install-tl-ubuntu script should be robust enough to work through these problems though. The reason why it fails and why I've never seen this before is because there are two folders of the form install-tl-<8 digits>, which happens because the script was interrupted across two different calendar days. Thus, it was just bad luck for you. If you clone the repository again (or git clean the other repo), chances are that it should work. To increase the chances, start the script at the beginning of the calendar day (let me know if that is not clear), or change

tl_dir=$( ls | grep -P "install-tl-\d{8}$" )

to

tl_dir=$( ls | grep -P "install-tl-\d{8}$" | head -n 1 ) 

Please let me know if you still have issues.

I hope to fix this bug on master branch soon. I would first like to confirm my above conjectures, then make sure I can reproduce the bug, and finally test that my fix does indeed fix it.

kulicuu commented 10 years ago

Ah cool thanks.

I found another very similarly named install script last week and it worked. Not sure if I'll have a chance to test this fix now, as the installation is global I think.

scottkosty commented 10 years ago

Glad you got it figured out, one way or another. No worries about testing.

kulicuu commented 10 years ago

Ah thanks!

scottkosty commented 10 years ago

I'm not sure why you closed this issue. It seems like a bug to me in install-tl-ubuntu. In general, the issue opener (kulicuu) should close a bug if he/she believes it to be an invalid bug report (e.g. it's not a bug of install-tl-ubuntu but of something else). Otherwise, the developer will close the bug once it is fixed. Please let me know if there's something I missed.