nano error: Error opening terminal: xterm-256color

前端 未结 10 620
梦谈多话
梦谈多话 2020-12-22 17:41

After the installation of OSX Lion, I tried to:

nano /etc/apt/sources.list

But I get this error:

Error opening terminal: xt         


        
10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 18:30

    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.

提交回复
热议问题