input_file
A B C D;X;Y 0
C D E F;Z;X 1
Output_file
A B C D;X;Y;0
C D E F;Z;X;1
我想将input_file的最后一列与倒数第二列合并,并在倒数第二列中用";“分隔最后一列的值(就像input_file的第4列一样)。因此,output_file少了一列。每一行都没有不同的模式,所以我可以使用grep,但是我可以使用"while read line“,但不知道如何将sed应用于每行中的最后一列条目。谢谢
由于一些依赖关系问题,我无法运行任何apt操作。
如果我运行sudo apt-get upgrade,就会得到以下内容:
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
gconf-service-backend : Depends: libgconf-2-4 (= 3.2.6-4ubuntu1) but 3.2.6-4.1 is installed
gconf2 : Depends: gcon
我启用了ubuntu,突然之间我无法安装任何东西。下面是一个错误输出示例。这种情况发生在我试图安装的任何软件包中。
laptop@my-laptop:~$ sudo apt install -f gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:9.3.0-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0
我收到一条错误消息:“卷boot只剩下5.3MB的磁盘空间。”
我在这个站点上查看了一些答案,我找到的关闭的答案提到了旧的linux内核,但是下面是我所有内核的列表。
ii linux-image-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-18-generic 3.5.0-18.29 i386 Linux kernel image for versio
最近,我的笔记本电脑断电了几次,现在,每当我尝试执行包操作时,我都会得到以下错误代码。我试着在论坛上寻找一个解决方案,但这些要么需要一个包操作,要么没有人回答。“'uname -r”告诉我,我的内核是3.11.0-17-泛型,但似乎我的内核标题是3.11.0-18-泛型。我尝试引导旧的内核版本来修复这个问题,但是我遇到了同样的错误。有人知道我能做什么吗?
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Do
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
我所犯的错误
sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space
我正尝试在基于aarch64的linux主机上使用线程编译和链接一个简单的C++程序。简单的程序如下所示:
#include <iostream>
#include <thread>
#include <atomic>
using namespace std;
#define ITERATIONS 1000
// to be called for multi threaded execution
void increment_atomic_thread (atomic<int>& a)
{
for (int i = 0; i
我在更新内核时遇到了麻烦。我在运行Kubuntu 14.04。uname -r输出:
3.13.0-32-generic
我清楚地看到了sudo dpkg --list 'linux-image*'在repos中更新的版本:
...
linux-headers-3.13.0-40 - Header files related to Linux kernel version 3.13.0
linux-headers-3.13.0-40-generic - Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
linux
linux-image-server depends on linux-image-3.2.0-39-generic; however:
Package linux-image-3.2.0-39-generic is not installed.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a follo
我今天升级到20.04了。在升级过程中,我收到了一条错误消息:“无法安装linux 4.15.0-142-泛型”。现在,在执行"sudo apt自动删除“时,我得到了以下输出:
jumbo@jumbo-M11AD:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
dconf-editor libhunspell-1.6-
我需要在活动工作表中找到一个表(一个工作表将只有一个表),并在该表中找到第一列和最后一列,并从第一列和最后一列中删除自动筛选器。
目前我正在这样做:-问题是我必须手动输入字段值,因为工作表的名称和表名都会更改
Private Sub Worksheet_Activate()
' Select middle cell
ActiveSheet.Range("$A$1").Select
' Remove autofilter from first column in the table
With Range("$A$2")
.AutoFilte
我在更新软件包时遇到了问题,于是我把404's带到了au.archive.ubuntu.com。
我现在似乎已经解决了,但是我现在明白了;
llibke@libke:~$ sudo apt-get -f install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
a
我尝试用clang 8.0.0为Linux内核2.6.37代码生成AST文件。我在内核根目录中运行以下命令 clang -emit-ast init/main.c -o astfile -std=c11 -Iinclude -Iarch/x86/include 并获取错误 In file included from /mnt/lfs/sources/linux-2.6.37/init/main.c:12:
/mnt/lfs/sources/linux-2.6.37/include/linux/types.h:13:2: warning: "Attempt to use kernel
我不能在UBUNTU上安装虚拟盒。我有一个i686 CPU,UBNUTU16.04LTS。
但是,运行此命令会导致错误。
$ sudo aptitude reinstall virtualbox-dkms
The following packages will be REINSTALLED:
virtualbox-dkms
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 617 kB of archives. After unpackin