QT Creator error: open /etc/default/lxd-bridge: no such file or directory

Asked by Filipe Martins

Hello,

I cannot open Ubuntu SDK. I got an error when opening Qt Creator to create the default configuration.
The error is: Stopping containers: All containers stopped.
error: open /etc/default/lxd-bridge: no such file or directory
---Task exited with errors, please check the output---

I've Ubuntu 16.10.
How can I fix this??

Thanks,
Filipe

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Filipe Martins
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

ls -la /etc/default/lxd-bridge

Thanks

Revision history for this message
Filipe Martins (filipe.martins) said :
#2

I already solved the problem.

The thing was that /etc/default/lxd-bridge was empty.

I tried the commands:

- sudo apt-get install lxd zfsutils-linux bridge-utils

- sudo lxd init

 - sudo dpkg-reconfigure lxd

but the problem remained.

So I put something on that file:

USE_LXD_BRIDGE="true"
LXD_BRIDGE="lxdbr0"

LXD_IPV4_ADDR=10.0.1.1
LXD_IPV4_NETWORK=10.0.1.1/24
LXD_IPV4_NETMASK=255.255.255.0
LXD_IPV6_PROXY=false
LXD_IPV4_DHCP_RANGE=10.0.1.2,10.0.1.254
EXISTING_BRIDGE=
LXD_IPV4_DHCP_MAX=253
LXD_IPV4_NAT=true

And it worked. I don't know why but the error disappeared.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) said :
#3

I had the same issue. However, I found a file lxd-bridge.upgraded in the directory, and I renamed it to lxd-bridge, then it started to work again. This is a little bit tricky.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) said :
#4

I had the same issue. However, I found a file lxd-bridge.upgraded in the directory, and I renamed it to lxd-bridge, then it started to work again. This is a little bit tricky.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) said :
#5

I had the same issue. However, I found a file lxd-bridge.upgraded in the directory, and I renamed it to lxd-bridge, then it started to work again. This is a little bit tricky.

Revision history for this message
ljgww (lj011-mt) said :
#6

[
What is the output of:

ls -la /etc/default/lxd-bridge

Thanks
]

$ ls -la /etc/default/lxd-bridge
ls: cannot access /etc/default/lxd-bridge: No such file or directory