AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-159189

Timur Fayzrakhmanov's questions

Martin Hope
Timur Fayzrakhmanov
Asked: 2015-09-16 03:59:54 +0800 CST

vim 上的列选择模式 (CTRL+V) 无法按预期工作

  • 4

我正在尝试选择并编辑这些文本:

pick e17a1b1 test 1
pick 37d4ccb test 2
pick c7ab952 test 3
pick 905617f test 4
pick 1c77d56 test 5
pick 1805ffa test 6

我所做的:

  1. ctrl + v(不是 V,因为 Ubuntu 将其解释为粘贴操作);
  2. 选择所有pick单词;
  3. shift + I;
  4. 开始打字abc;
  5. esc, esc..;
  6. 从这里开始要么没有任何变化(如果我输入一些不同的字符)要么改变唯一的第一行。

在此处输入图像描述 在此处输入图像描述

我做错了什么?

更新

我试过 vim-gnome 并做了同样的事情导致了预期的结果!

command-line
  • 1 个回答
  • 1799 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2015-09-16 02:23:41 +0800 CST

如何使用内置屏幕查看外接显示器上的内容?

  • 0

我有一台连接到外接显示器的笔记本电脑。一切正常,但有时我需要检查外部显示器上发生了什么(因为我看不到它们),因此两台显示器应该显示相同的输出一段时间。有什么办法吗?

14.04
  • 2 个回答
  • 104 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2015-03-21 10:42:21 +0800 CST

安装pub之类的Dart命令后,找不到dart2js

  • 17

我已经按照官方网站 ( https://www.dartlang.org/tools/debian.html ) 的说明安装了 Dart。更准确地说:

$ sudo apt-get update
$ sudo apt-get install apt-transport-https
# Get the Google Linux package signing key.
$ sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
# Set up the location of the stable repository.
$ sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
$ sudo apt-get update
$ sudo apt-get install dart

安装成功,但过了一段时间发现没有pub、dart2js等其他相关命令。

pub: command not found
dart2js: command not found

怎么了?

操作系统:Ubuntu 14.10

apt
  • 3 个回答
  • 10860 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2015-01-29 09:57:28 +0800 CST

为什么我需要多个引导分区(EFI 和 bios grub)?

  • 5

我试图了解如何为将来的 Ubuntu 安装正确分区磁盘。

原因:在尝试将 Windows 7 与 Ubuntu 一起安装后,我在我的 HP pavilon 笔记本电脑的 BIOS 上启用了“传统模式”(我认为它是 EFI,但它看起来像传统的 BIOS)。现在我明白在 Windows 7 上使用 GPT 和 EFI 是一项复杂的任务。但是目前这并不重要,因为我的 Ubuntu 没有启动,在启动时 EFI 说“没有安装操作系统,请检查磁盘”。我可以通过选择“从 EFI 文件启动”选项并在启动时指定启动文件来成功启动 Ubuntu 。

请看下面的屏幕截图。这是我的磁盘的样子:

在此处输入图像描述

我已经阅读了这两个非常有用的主题:efi-boot-partition-and-biosgrub-partition和how-to-use-manual-partitioning-during-installation。但是找不到类比的情况。

所以问题是:我可以安装只有 4 个部分的 Ubuntu 14.10:“/”、“/boot”、“swap”和“/home”吗? 这里的分区有什么奇怪的?(在上面的例子中)

boot
  • 2 个回答
  • 44772 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-12-15 10:18:53 +0800 CST

计算器。无法以对数为底设置浮点数(标记“..”处的表达式格式错误)

  • 0

请看屏幕截图,我认为它是不言自明的)我使用 [Alt] 键入基础,我认为“,”必须是下标。然而它看起来不像..

在此处输入图像描述

我做错了什么?!

calculator
  • 1 个回答
  • 180 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-12-14 11:59:35 +0800 CST

Ubuntu 14.10 在启动时冻结。升级英特尔图形后(xorg-xserver 等)

  • 1

上周我完全重新安装了 Ubuntu 大约 4 次。我受够了这个 - 所以我哭求帮助!

无论我尝试什么,都无济于事:清除并重新安装 ubuntu-desktop、nvidia-drivers、xorg-xserver 等等。

请在 Ubuntu 冻结(启动时)时查看屏幕截图以获取更多信息

在此处输入图像描述

最后的操作是添加 ppa:xorg-edges 并安装最新的软件包,但不幸的是它没有帮助 - 结果和以前一样 - 黑屏。但是现在,消息会在冻结后立即出现。

更新:我不知道如何解决它,我接受的答案只是因为没有解决方法。

drivers
  • 1 个回答
  • 2098 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-11-13 07:37:23 +0800 CST

如何在 Ubuntu 14.10 上安装 MariaDB?

  • 3

通过官方页面(对于 Ubuntu 14.04)提供的存储库安装最新版本的 MariaDB 失败后,我尝试安装已包含在 Ubuntu 14.10 中的 mariadb-5.5。但是我收到以下错误:

Setting up mariadb-client (5.5.39-2) ...
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-5.5 (>= 5.5.39-2); however:
  Package mariadb-server-5.5 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                    Processing triggers for libc-bin (2.19-10ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 mariadb-server-5.5
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

但无论我做什么都无济于事。我试图通过以下方式解决我的问题:

  • dpkg-invoke-rc-d-initscript-mysql-action-start-failed
  • mariadb-server-depends-on-mariadb-server-5-5-5-5-39maria
  • mysql 作业启动失败
  • dpkg:处理 mysql-server (--configure) 时出错
  • sudo apt-get purge mariadb* mysql*, rm /etc/mysql -R,rm /var/lib/mysql -R
  • rm /* -R:-)
  • sudo dpkg --configure -a
  • sudo apt-get -f install

上面列出的任何内容都对我没有帮助。拜托,我需要帮助!

server
  • 3 个回答
  • 9084 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-10-11 09:40:47 +0800 CST

无法从 Intel 切换到 Nvidia GPU 或如何使 Nvidia 驱动程序工作(黑屏、冻结登录、错误等)

  • 2

我的问题是已知的,但仍未解决。安装最新(或任何其他版本)的 Nvidia 驱动程序后,我出现黑屏或无法登录。

有用的信息:

  • nvidia-detector显示none,
  • lspci显示:

    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1)
    
  • Ubuntu 14.04.1 x64

  • linux内核版本是3.13.0-37-generic
  • Nvidia驱动版本是340.46

我现在可以(在视觉上)在 vianvidia-prime和 Nvidia X Server 设置之间切换,尽管之前由于像这样的不同问题这是不可能的。

我试图从官方页面安装最新的驱动程序,但还是一样。

14.04
  • 2 个回答
  • 3843 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-10-06 12:50:01 +0800 CST

处理包 fglrx 时出错。软件包 fglrx 尚未配置

  • 0

重新安装 fglrx 软件包后,我遇到了这条消息。重新安装 fglrx 的原因是解决了 nvidia 驱动程序的问题(我尝试了一些答案来解决系统启动时黑屏或登录时冻结)。当我使用apt-get命令(删除、安装等)时会出现以下消息。那么我该如何解决这个问题呢?

Setting up fglrx (2:13.350.1-0ubuntu2) ...
update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: error: error creating symbolic link `/usr/lib/x86_64-linux-gnu/xorg/extra-modules.dpkg-tmp': No such file or directory
dpkg: error processing package fglrx (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of fglrx-amdcccle:
 fglrx-amdcccle depends on fglrx; however:
  Package fglrx is not configured yet.

dpkg: error processing package fglrx-amdcccle (--configure):
 dependency problems - leaving unconfigured
Setting up nvidia-prime (0.6.2) ...No apport report written because the error message indicates its a followup error from a previous failure.

nvidia-prime start/running, process 3001
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 fglrx
 fglrx-amdcccle
E: Sub-process /usr/bin/dpkg returned an error code (1)
drivers
  • 1 个回答
  • 4667 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-10-05 23:55:39 +0800 CST

Ubuntu 14.04.1 和 ubuntu sdk 未满足的依赖项。改为使用 Qt Creator [重复]

  • 2
这个问题在这里已经有了答案:
Ubuntu 应用程序开发。无法安装 Ubuntu SDK 和有问题的 Ubuntu 模拟器 (1 answer)
7 年前关闭。

我正在尝试安装 Ubuntu SDK,但遇到了与此处相同的问题(第一,第二)。像这样的推广解决方案对我也没有帮助(

The following packages have unmet dependencies:
 ubuntu-sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

好的,如果需要,我会找到解决方案,但我更恼火的是,为什么会这样?我不明白问题从哪里开始?有人在“简单的 3 步安装”上测试他们的软件吗?

这是一个抒情的题外话。我的第二个问题是我如何只使用 Qt Creator(而不是构建在它们之上的 Ubuntu SDK)来创建相同的 Ubuntu 应用程序?

@g_p 的输出:

The following packages have unmet dependencies:
ubuntu-sdk-libs-dev : Depends: libqt5webkit5-dev but it is not going to be installed
                   Depends: libqt5xmlpatterns5-dev but it is not going to be installed
                   Depends: qt3d5-dev but it is not going to be installed
                   Depends: qt5-default but it is not going to be installed
                   Depends: qtbase5-dev but it is not going to be installed
                   Depends: qtdeclarative5-dev but it is not going to be installed
                   Depends: qtlocation5-dev but it is not going to be installed
                   Depends: qtmultimedia5-dev but it is not going to be installed
                   Depends: qtscript5-dev but it is not going to be installed
                   Depends: qtsensors5-dev but it is not going to be installed
                   Depends: qttools5-dev but it is not going to be installed
14.04
  • 1 个回答
  • 1351 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-10-05 06:07:44 +0800 CST

Ubuntu 应用程序开发。无法安装 Ubuntu SDK 和有问题的 Ubuntu 模拟器

  • 1

您好,我已经安装了 Ubuntu 14.04.1,但我已经没有耐心去解决我的问题了。我无法安装ubuntu-sdk包:

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 unmet dependencies:
ubuntu-sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我真的无法解决这个问题(不幸的是,这里列出的解决方案对我没有帮助)。经过研究,我了解到下一代 Ubuntu 应用程序将使用 QML 语言,因此我需要 Qt 编译器和 IDE。下一步不是安装 Ubuntu-sdk(在 Qt Creator 之上创建),而是安装 Qt Creator。感谢上帝,我从官方网站安装了 Qt Creator,没有任何问题。但是现在我不知道如何使用它来创建 Ubuntu 应用程序(一般来说,我是创建应用程序的新手)

所以我的下一步是安装ubuntu-emulator,至少看看 Ubuntu Touch 的样子。在模拟器安装和实例创建之后,我得到以下信息:

在此处输入图像描述

终端的一小段摘录:

[    3.332876] EXT4-fs (mmcblk0): couldn't mount as ext3 due to feature incompatibilities
[    3.352482] EXT4-fs (mmcblk0): couldn't mount as ext2 due to feature incompatibilities
                                                                            [    3.396557] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts: discard
                                                                                                            [    3.437316] initrd: boot mode: normal
                                                                                                                           [    3.510130] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
[    3.522541] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
                                                                                                                                                                                                        [    3.688075] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[    3.691622] initrd: mounting system.img (image developer mode)
[    3.822189] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities
[    3.844501] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities
                                                                             [    3.956694] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
[    4.106987] initrd: device is generic_x86
               [    5.341856] Clocksource tsc unstable (delta = 820035903 ns)
[   12.067393] initrd: checking fstab /root/var/lib/lxc/android/rootfs/fstab* for additional mount points
                                                                       [   12.328245] initrd: checking mount label mtdblock2
                                                                                      [   12.374596] initrd: mounting /dev/mtdblock2 as /root/android//cache
mount: mounting /dev/mtdblock2 on /root/android//cache failed: Invalid argument
[   12.406983] initrd: mounting /root/var/lib/lxc/android/system.img as /root/android/system
                                                                                                                                                                                                                                                                            Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[   16.495823] init: ureadahead-touch main process (448) terminated with status 5
[   53.042745] init: /dev/hw_random not found
               [   53.044612] init: cannot open '/initlogo.rle'
[   53.188136] init: /dev/hw_random not found
               [   54.943603] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
[   54.943943] init: cannot find '/system/bin/ubuntuappmanager.disabled', disabling 'ubuntuappmanager'
[   55.031468] init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}'
[   55.031579] init: powerctl: cannot expand '${sys.powerctl}'
[   55.031664] init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}'
[   55.031735] init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes'
[   55.083456] init: cannot find '/sbin/adbd', disabling 'adbd'
[   55.094205] init: cannot find '/sbin/adbd', disabling 'adbd'
[  166.218726] systemd-logind[1013]: Failed to start unit user@32011.service: Unknown unit: user@32011.service
                                                                                                      [  166.219137] systemd-logind[1013]: Failed to start user service: Unknown unit: user@32011.service
                                                                                                                                                                                                 * Setting up X socket directories...                                [ OK ]
[  168.769983] systemd-logind[1013]: Failed to start unit user@0.service: Unknown unit: user@0.service
                                                                                              [  168.771611] systemd-logind[1013]: Failed to start user service: Unknown unit: user@0.service
                                                                                                                                                                                     * Starting automatic crash report generation: apport                [ OK ]
                                                                                                                                                                                     emulator: User configuration saved to /home/timur/.android/emulator-user.ini

模拟器非常慢(我在我的HP 笔记本电脑上工作)并且有问题。我认为错误视图的原因是在视频驱动程序中,并且可能与 OpenGL 有关,我不知道......我将针对此问题创建一个额外的问题

application-development
  • 1 个回答
  • 1172 Views
Martin Hope
Timur Fayzrakhmanov
Asked: 2014-08-02 08:19:07 +0800 CST

如何让 bash 或 ssh 以后台模式进入正在运行的容器?

  • 972

我想通过 ssh 或 bash 进入正在运行的 docker 容器。请看例子:

$ sudo docker run -d webserver
webserver is clean image from ubuntu:14.04
$ sudo docker ps
CONTAINER ID  IMAGE            COMMAND    CREATED STATUS  PORTS          NAMES
665b4a1e17b6  webserver:latest /bin/bash  ...     ...     22/tcp, 80/tcp loving_heisenberg 

现在我想得到这样的东西(进入正在运行的容器):

$ sudo docker run -t -i webserver(或者也许665b4a1e17b6相反)
$ root@665b4a1e17b6:/#

但是,当我运行上面的行时,我得到了新的 CONTAINER ID:

$ root@42f1e37bd0e5:/#

我使用了 Vagrant,我希望获得与vagrant ssh.

bash
  • 15 个回答
  • 1981639 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve