After the installation of OSX Lion, I tried to:
nano /etc/apt/sources.list
But I get this error:
Error opening terminal: xt
somehow and sometimes "terminfo" folder comes corrupted after a fresh installation. i don't know why, but the problem can be solved in this way:
1. Download Lion Installer from the App Store
2. Download unpkg: http://www.macupdate.com/app/mac/16357/unpkg
3. Open Lion Installer app in Finder (Right click -> Show Package
Contents)
4. Open InstallESD.dmg (under SharedSupport)
5. Unpack BSD.pkg with unpkg (Located under Packages) Term info
will be located in the new BSD folder in /usr/share/terminfo
hope it helps.