Ubuntu

Ubuntu用户和开发人员的问答

2
在Ubuntu 14.04上升级Git版本
请问有人可以告诉我这是什么问题吗? 我跑 $ sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: git-man liberror-perl Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: …
49 14.04  apt  upgrade  git 

6
将大文件复制到USB时系统冻结/无响应/无法使用
昨天,我将一个8 GB的文件复制到USB,写入速度为7 MB / s,而我的RAM为3 GB。复制系统冻结时,我什至无法移动光标。 我设法登录到文本控制台,然后运行iotop,它显示名为的进程kswapd0占用了99.99%的IO。 是否有解决方法,所以复制大文件不会使我的系统无法使用?
49 usb  freeze 


7
如何在/etc/apt/sources.list中添加一行?
我正在Ubuntu上更新Tor,它指出: 不要在Ubuntu的Universe中使用这些软件包。您需要先设置我们的软件包存储库,然后才能获取Tor。 然后指出,我必须将此行添加到您的/etc/apt/sources.list文件中: deb http://deb.torproject.org/torproject.org <precise> main 我不确定如何在上添加一行/etc/apt/sources.list。
49 apt 



2
如何使用终端打开Visual Studio代码
最近,我下载了Visual Studio代码,该代码可用作文本编辑器,但我不知道如何从终端打开代码文件。 当我使用Sublime Text时,命令是subl,因此当我运行subl newFolder.c它时,它将自动打开名为Sublime Text的文件newFolder.c。 我可以在Visual Studio Code中键入什么来创建/打开文件?

3
bash脚本中出口0,出口1和出口2的含义
我正在做一些练习。 编写一个脚本,该脚本将使用月份号作为参数,并将其转换为月份名称。结果将被打印到标准输出。 我提出了一个解决方案: #test for number of argument if [ "$#" -eq 0 ] ; then echo -e "No argument." echo -e "Write a number between 1 and 12." exit 1 elif [ "$#" -gt 1 ] ; then echo -e "More than 1 argument." echo -e "Write a number …
49 bash  scripts 

5
Ubuntu 18.04中的双监视器工作区
在Ubuntu 18.04上设置双显示器 当我点击活动时,只有左监视器切换工作区,而右监视器只是保留屏幕上的内容。有没有一种方法可以使工作区跨越两个监视器,以便当我从一个工作区切换到另一个工作区时,两​​个监视器都可以切换?

3
如何在Ubuntu 16.10上的启动时执行命令(替代rc.local)
我正在运行Ubuntu 16.10的Linode服务器上设置配额,并且出现以下错误 无法stat()挂载的设备/ dev / root:没有这样的文件或目录 因此,要解决此问题,我到达了此线程以进行修复,方法是添加 ln -s /dev/xvda /dev/root /etc/init.d/quota restart 到/etc/rc.local。但是Ubuntu 16.10 rc.local不再使用systemd了。的替代方法是什么rc.local,如何在启动时运行上述命令? 我也使用启用了该服务,systemctl enable rc-local.service但对我不起作用。任何线索将不胜感激。
49 16.10  systemd 

3
如何从Ubuntu删除快照存储?
如何删除按扣?apt假装它不存在,但是我仍然可以用它调用命令。 试图rm说“只读文件系统” root@tunnel:/# apt remove snap Reading package lists... Done Building dependency tree Reading state information... Done Package 'snap' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@tunnel:/# snap whoami email: -

1
我没有RAID,但收到警告mdadm.conf定义没有数组
我安装了16.04 Server,initramfs通过正常的软件包升级来升级软件包时,我的日志中也有类似的消息。 ... Setting up initramfs-tools (0.122ubuntu8.3) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.122ubuntu8.3) ... update-initramfs: Generating /boot/initrd.img-4.4.0-38-generic W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. 这是正常现象吗,还是Ubuntu由于某个地方的配置错误而期望找到RAID? 以下是内容/etc/mdadm/mdadm.conf: # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default (built-in), scan all …
48 server  16.04  mdadm 

4
使用Ubuntu 16.04时,笔记本电脑的盖子关闭时笔记本电脑不会挂起
我有一台Dell 7737笔记本电脑,在Ubuntu 16.04中,当笔记本电脑盖关闭时它不再挂起。关闭14.04盖后,笔记本电脑将按预期挂起。但是,我用Ubuntu 16.04重新加载了系统,现在关闭笔记本电脑没有任何作用。笔记本电脑继续运行,好像什么都没发生。 当我从菜单中手动选择“挂起”时,它会按预期工作。(尽管它确实提示我在履历表上进行两次登录。不,不是加密登录,然后是OS登录。这是两次OS登录。) 注意:更改“ 系统设置” |“电源”似乎没有任何影响。 关于此区域从14.04变为16.04的任何想法?

4
Google Chrome PPA升级无效签名
运行时: sudo apt-get update && sudo apt-get dist-upgrade 我得到以下输出: Ign http://security.ubuntu.com utopic-security InRelease Ign http://gb.archive.ubuntu.com utopic InRelease Ign http://extras.ubuntu.com utopic InRelease Get:1 http://security.ubuntu.com utopic-security Release.gpg [933 B] Ign http://dl.google.com stable InRelease Ign http://gb.archive.ubuntu.com utopic-updates InRelease Get:2 http://extras.ubuntu.com utopic Release.gpg [72 B] Get:3 http://security.ubuntu.com utopic-security Release [62.0 kB] Ign http://gb.archive.ubuntu.com utopic-backports …

4
为什么从14.04存储库中删除了virtualbox软件包?
今天升级到Ubuntu 14.04后,尝试运行Windows XP虚拟机时遇到一些问题。当我尝试启动它时,显示一个消息对话框,提示未安装内核驱动程序,具体来说,应由名为的软件包提供virtualbox-dkms。我决定重新安装,virtualbox这样依赖关系将自动解决,但是执行命令(sudo apt-get install --reinstall virtualbox)导致出现类似于以下消息:“由于无法下载软件包,因此无法重新安装软件包”(我正在按内存复制消息)。 然后,我尝试使用突触软件包管理器gui。软件包virtualbox及其依赖项在那里,但没有版本号或描述。然后我切换到主服务器,并尝试进行更新,现在该软件包不再存在。 我的sources.list文件可能有问题,但也可能由于某些原因我不知道他们决定virtualbox从存储库中删除。 我想我现在会尝试从虚拟盒子站点下载软件包,但是在Ubuntu中,我总是从存储库安装virtualbox。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.