标签: ubuntu-18.04

Android Studio:/ dev/kvm设备权限被拒绝

当我尝试在模拟器上运行我的Android应用程序时,我收到此错误:

/ dev/kvm权限被拒绝.

我检查了权限,并将我当前登录的用户添加到kvm组.怎么了?

64-bit kvm ubuntu-14.04 android-studio-2.0 ubuntu-18.04

412
推荐指数
15
解决办法
25万
查看次数

如何修复mysql错误日志中的“mbind:不允许操作”

我的 MySQL 错误日志有问题,目前主要由“mbind:不允许操作”行组成(见下文)。为什么会发生,我该如何解决?

这是困扰我的“主要”部分。正如您在下面看到的,并非所有行都是“mbind:不允许操作”。我怀疑 MySQL 查询错误应该是而不是那行,但由于某种原因它们不能写入文件。

MySQL 本身是一个 Docker 容器,其中的日志文件通过以下方式进行处理:

volumes:
- ./mysql/log:/var/log/mysql
Run Code Online (Sandbox Code Playgroud)

有趣的是:

  • “docker logs mysql_container”什么也没显示...
  • 驻留在同一个卷文件夹中的slow.log 完全没问题,并且里面有真正的慢日志行,没有任何“mbind:不允许操作”!
  • 与slow.log 转到general.log 相同——这里也没有问题

有任何想法吗?先感谢您。

2019-04-07T12:56:22.478504Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2019-04-07T12:56:22.478533Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2019-04-07T12:56:22.478605Z 0 [System] …
Run Code Online (Sandbox Code Playgroud)

nginx docker mysql-8.0 ubuntu-18.04

57
推荐指数
2
解决办法
4万
查看次数

由于未安装包轮,因此无法构建轮子

我在使用轮子时遇到了这个问题:“无法为……构建轮子,因为未安装包‘轮’。” 有几个包,我不知道该怎么做 - 正如你在最后看到的 - 我已经安装了轮包

我在 Ubuntu 18.04 上这样做

我将不胜感激任何帮助!

mikolajbe@mikolajbe-vb:~/freqtrade$ ./setup.sh --install
/usr/bin/python3.6
using Python 3.6
-------------------------
Installing mandatory dependencies
-------------------------
Debian/Ubuntu detected. Setup for this system in-progress
 This PPA has been removed from public access as part of a protest against the abuse of open-source projects by large companies. For more detail visit the main page here: https://launchpad.net/~jonathonf

If you are a company and you would like this PPA to continue then let me know your preferred …
Run Code Online (Sandbox Code Playgroud)

python python-wheel ubuntu-18.04

46
推荐指数
1
解决办法
8万
查看次数

尚未使用systemd作为初始化系统(PID 1)引导系统。无法操作

我正在尝试按照WSL中有关数字海洋的本文中的讨论进行Redis安装过程。安装的Ubuntu版本是Ubuntu 18.04。

Redis安装中的一切都很好,但是当我尝试运行此命令时sudo systemctl start redis,收到了此消息。

System has not been booted with systemd as init system (PID 1). Can't operate.
Run Code Online (Sandbox Code Playgroud)

关于该怎么办的任何想法?

redis windows-subsystem-for-linux ubuntu-18.04

34
推荐指数
7
解决办法
7万
查看次数

为什么在 WSL 中禁用了 systemd?

没有任何 systemd 命令在 WSL(Ubuntu Bash 18.04)中工作。当我跑时sudo systemctl is-active kubelet,错误是output: System has not been booted with systemd as init system (PID 1). Can't operate. : running command: sudo systemctl is-active kubelet

如何在 WSL 中启用 systemd 功能?有什么办法摆脱System has not been booted with systemd

ubuntu kubernetes windows-subsystem-for-linux minikube ubuntu-18.04

32
推荐指数
3
解决办法
6万
查看次数

如何在 Ubuntu 18.04 中安装 GLIBC 2.29 或更高版本

所以我尝试在本地系统上安装 truDesk。我在运行命令时收到此错误npm install -g yarn

节点:/lib/x86_64-linux-gnu/libc.so.6:找不到版本“GLIBC_2.28”(节点需要)

我的 Ubuntu 版本是Ubuntu 18.04.6 LTS,当我检查最新版本时,它显示该软件是最新的。当我遇到 glibcc 错误时,它需要大于 18 的 Ubuntu 版本。我如何更新版本?

这是我正在尝试下载的应用程序。

ubuntu glibc ubuntu-18.04

31
推荐指数
2
解决办法
12万
查看次数

当组权限看起来正确时,如何修复"拨打unix /var/run/docker.sock:连接:权限被拒绝"?

在Ubuntu 18.04更新之后我突然遇到问题:之前我在系统上没有问题地使用了docker,但突然间我不能.据我所知,权限看起来正确:

$ docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
$ ls -last /var/run/docker.sock 
0 srw-rw---- 1 root docker 0 Jul 14 09:10 /var/run/docker.sock
$ whoami
brandon
$ cat /etc/group | grep docker
docker:x:995:brandon
nvidia-docker:x:994:
Run Code Online (Sandbox Code Playgroud)

编辑:

集团信息:

$ groups
brandon
$ groups brandon
brandon : brandon adm cdrom sudo dip plugdev games lpadmin sambashare docker
$ whoami …
Run Code Online (Sandbox Code Playgroud)

docker ubuntu-18.04

28
推荐指数
8
解决办法
2万
查看次数

如何在不丢失 openproject 数据的情况下将 postgresql 数据库从 10 升级到 12

我的 OpenProject 管理软件安装了默认的 postgresql 10。目前 postgresql DB 是 12,它有很多新功能。

我想在不丢失数据库中的数据的情况下升级我的 Postgres 数据库。我的系统是 ubuntu 18.04 并托管了 openproject。

我在网上搜索,找不到升级 postgresql 的步骤。

你能指导我安装新数据库吗,所有数据都应该在新数据库中。谢谢你的帮助。

postgresql openproject ubuntu-18.04

27
推荐指数
2
解决办法
3万
查看次数

Ubuntu 18.04升级后无法安装php7.2-curl

从今天的16.04升级到18.04使用 do-release-upgrade -d

在升级过程中,我被告知将删除一些软件包,其中包括:

删除:libperl5.22 lxc-common perl-modules-5.22 php-imagick
php7.1-curl php7.2-curl python3-certbot-nginx

我可以毫无问题地重新安装imagick和certbot,但如果我尝试安装php7.2-curl,我会收到消息:

# apt install php7.2-curl -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have …
Run Code Online (Sandbox Code Playgroud)

php apt php-curl ubuntu-18.04

26
推荐指数
1
解决办法
2万
查看次数

Pytorch 说 CUDA 不可用

我正在尝试在我拥有的笔记本电脑上运行 Pytorch。这是一款较旧的型号,但确实配备了 Nvidia 显卡。我意识到它可能不足以用于真正的机器学习,但我正在尝试这样做,以便我可以学习安装 CUDA 的过程。

我遵循了Ubuntu 18.04安装指南中的步骤(我的特定发行版是 Xubuntu)。

我的显卡是 GeForce 845M,经验证lspci | grep nvidia

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce 845M] (rev a2)
01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)
Run Code Online (Sandbox Code Playgroud)

我还安装了 gcc 7.5,通过验证 gcc --version

gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Run Code Online (Sandbox Code Playgroud)

我安装了正确的标头,通过尝试安装它们来验证sudo …

linux pytorch ubuntu-18.04

22
推荐指数
2
解决办法
4万
查看次数