每当我尝试安装 Flux(在终端中)并输入“ sudo apt-get update”时,它都会说:
Failed to fetch http://ppa.launchpad.net/kilian/f.lux/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found.
Run Code Online (Sandbox Code Playgroud) 这似乎是一个错误,但我不确定要报告哪个包。尝试这个:
foo foo &正确的行为是Command not found.
每次在 gnome-terminal 上都会发生这种情况。在 xterm 上(当然没有选项卡)它会随机工作 - 可能尝试了 3 次中的 2 次。
这应该是一件简单的事情。
我按照“ http://golang.org/doc/install ”上的说明在 Ubuntu 上安装了“Go”。
但是当我输入“go”时,它显示“当前未安装程序‘go’”。
我该怎么办?
我正在运行 Ubuntu 13.10。我想通过编辑/etc/default/grub文件来更改 GRUB 超时。但是我的系统中没有这样的文件。
启动时会显示 GRUB 菜单,我没有遇到任何启动问题。如果这个文件对启动如此重要,为什么我没有遇到任何启动问题?
当我通过运行添加存储库时
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
Run Code Online (Sandbox Code Playgroud)
它输出这个对话框:
Updated versions of X.org drivers, libraries, etc. for Ubuntu.
This PPA is for stable upstream releases of X.org components. If you're looking for something even more bleeding-edge, please see the xorg-edgers PPA.
While Ubuntu does not "officially/formally" support these packages, if you discover problems when installing these debs please feel free to report bugs to launchpad. However, please make sure to clearly state that you are running packages from this PPA so we know the …Run Code Online (Sandbox Code Playgroud) 我正在使用 ubuntu 12.04 lts,我想使用终端删除以下文件:
/etc/apt/sources.list.d/google-earth.list.save /home/jatin/google-earth-stable_current_i386.deb /home/jatin/google-earth-stable_current_i386.deb.1 /home/jatin/.cache/software-center/piston-helper/rec.ubuntu.com,api,1.0,recommend_app,google-earth-stable,,13c5f00780e1a1b88538de42b80aaada /home/jatin/.cache/software-center/rnrclient/reviews.ubuntu.com,reviews,api,1.0,reviews,filter,en,any,any,any,google-earth-stable,page,1,helpful, ,ea694de2da0c9426e7b795c702d8b1d2 /home/jatin/Desktop/Debians/google-earth-stable_current_amd64.deb /home/jatin/Downloads/google-earth-stable_current_amd64.deb /usr/share/icons/oxygen/128x128/mimetypes/application-vnd-google-earth-kml.png /usr/share/icons/oxygen/16x16/mimetypes/application-vnd-google-earth-kml.png /usr/share/icons/oxygen/22x22/mimetypes/application-vnd-google-earth-kml.png /usr/share/icons/oxygen/32x32/mimetypes/application-vnd-google-earth-kml.png /usr/share/icons/oxygen/48x48/mimetypes/application-vnd-google-earth-kml.png /usr/share/icons/oxygen/64x64/mimetypes/application-vnd-google-earth-kml.png /usr/share/mime/application/vnd.google-earth.kml+xml.xml /usr/share/mime/application/vnd.google-earth.kmz.xml /var/cache/apt/archives/google-earth-stable_6.0.3.2197-r0_amd64.deb
它们分散在计算机中。有没有一次删除它们的命令?
我有一个包含一千行的文本文件。我想通过将每一行写入单独的文本文件来将文件拆分为 1000 个不同的文件。我希望拆分文件的名称按顺序排列。
例子:
foo.txt 文件包含,
foo
bar
...
...
lastfoo
Run Code Online (Sandbox Code Playgroud)
第一个拆分文件必须仅包含一行foo,其名称为bar1.txt. 并且第二个文件必须只包含一行bar,它的名称bar2.txt也是如此,因为最后一个文件应该包含一行lastfoo,最后一个文件的名称将是bar1000.txt.
命令行(单行)方式比脚本方式更好。
** (gedit:8315): CRITICAL **: file log.c: line 980: unexpected error: Error calling StartServiceByName for org.gnome.zeitgeist.Engine: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/bin/zeitgeist-daemon exited with status 1 (g-dbus-error-quark, 25)
Run Code Online (Sandbox Code Playgroud)
如果我这样做就可以了gksu gedit。
我有一个文本文件,其中有几个名字,名字排在第一位,姓氏排在第二位。如何使用 Sed 颠倒此名称顺序,以便姓氏在前,名字在后?
例如,我有如下几行
Steve Blenheim:238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300
Betty Boop:245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23:14500
Igor Chevsky:385-375-8395:3567 Populus Place, Caldwell, NJ 23875:6/18/68:23400
Run Code Online (Sandbox Code Playgroud)
我希望他们看起来像
Blenheim Steve:238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300
Boop Betty:245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23:14500
Chevsky Igor:385-375-8395:3567 Populus Place, Caldwell, NJ 23875:6/18/68:23400
Run Code Online (Sandbox Code Playgroud)