Skip to content

apt-get cannot write log, reports openpty error #80

Closed

Description

@mphaney

Whenever apt-get installing a new package, after the fetch but before selecting/preparing/etc, this error is almost always printed:

E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)

Tried installing libc6-dev which provides some of the pty stuff, but to no avail. This error does not stop apt-get from finishing, but it is a bit unnerving all the same.

Activity

  1. dethoma commented on Apr 8, 2016

    @dethoma

    Thanks for reporting this. We are aware of gaps in our pseudo terminal implementation and are working to address them. Will keep the forum posted.

  2. mobluse commented on Apr 9, 2016

    @mobluse

    I also have this problem:

    root@localhost:~# apt-get install xterm
    root@localhost:~# xterm
    xterm: Error 32, errno 2: No such file or directory
    Reason: get_pty: not enough ptys
    

    E.g. xedit works with Xming.
    [This is still an issue in Build 14352.]

  3. JimiC commented on Apr 11, 2016

    @JimiC

    Just FYI. I run into a similar issue related to pty. I was trying to use sphinx-autobuild for a docs project I'm contributing to and I get the following Python error.

    sphinx-autobuild -b html -d _build/doctrees   . _build/html
    
    +--------- manually triggered build ---------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/bin/sphinx-autobuild", line 11, in <module>
        sys.exit(main())
      File "/usr/local/lib/python2.7/dist-packages/sphinx_autobuild/__init__.py", line 310, in main
        builder.build()
      File "/usr/local/lib/python2.7/dist-packages/sphinx_autobuild/__init__.py", line 173, in build
        master, slave = pty.openpty()
      File "/usr/lib/python2.7/pty.py", line 29, in openpty
        master_fd, slave_name = _open_terminal()
      File "/usr/lib/python2.7/pty.py", line 70, in _open_terminal
        raise os.error, 'out of pty devices'
    OSError: out of pty devices
  4. sunilmut commented on Apr 11, 2016

    @sunilmut
    Member

    Yes, PTY is not yet fully implemented. We will be tracking\prioritizing which features to light up next by looking at the feedback provided at the wpdev portal. We appreciate your feedback and please make sure to provide it through the wpdev portal as well. Looks like there is already a post tracking this which you can up vote (or add a new one):

    https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13248360-pseudoterminals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions