Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

charlesBR's avatar

Problem with "homestead edit" command

I can't get "homestead edit" command to work on Ubuntu.

Here's what it says when I run the command:

$homestead edit
WARNING: HOME is not set, using root: /
Warning: unknown mime-type for "/home/charlesaf/.homestead/Homestead.yaml" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"
WARNING: HOME is not set, using root: /
Opening "/home/charlesaf/.homestead/Homestead.yaml" with LibreOffice 4.3 Writer  (application/x-yaml)
Failed to open display

I even changed the default editor to Sublime Text, but it stills mentions LibreOffice:

$xdg-mime query default application/x-yaml
sublime_text.desktop

Anyone knows what I should do?

0 likes
5 replies
charlesBR's avatar

Well, should anyone run into this error, I could "fix" it by manually destroying the VMs on Virtual Box and reinstalling Homestead... I had probably broken something previously :/

bashy's avatar
bashy
Best Answer
Level 65

Try make an alias to just open the file manually or something in the meantime

charlesBR's avatar

Thanks @bashy. I switched to Linux recently, so I'm still not quite aware of its facilities. This one does the trick though! ;)

bashy's avatar

Yeah, you could alias "st ~/.homestead/Homestead.yaml" and use the oh-my-zsh Sublime plugin

2 likes
pixiestix's avatar

I get this error when I try to run the "homestead edit" command: homestead edit LSOpenURLsWithRole() failed with error -10810 for the file /Users/brandisoucy/.homestead/Homestead.yaml. Has anyone seen this one before?

Please or to participate in this conversation.