为什么apt要尝试从archive.ubuntu.com下载档案?
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps teas
我想做的是:
sudo apt-get installl qt5-default
Reading package list... Done
Building dependency tree
Reading state information... Done
E: unable to locate package qt5-default
在Qt-论坛上,我发现我可以尝试将类似的内容添加到/etc/apt/sources.list中:
deb http://http.debian.net/debian jessie main
但当我加完行后,我无法保存它。当我在正确的目录中时,我这样做了:
sud
我有几个使用Vim的系统,其中一个系统无法查看/编辑压缩文件。我相信我有正确的插件,因为我的Vim 7.0的另一个系统可以与相同的插件正常工作。
我得到一个错误:
$ vi admin.war
~
...
~
***error*** (zip#Browse) unzip not available on your system
我的机器:
$ uname -srmo
Linux 2.6.35.4-rscloud x86_64 GNU/Linux
$ vim --v
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 28 2010 11:05:08
当我试图用Project ERROR: Unknown module(s) in QT: positioning构建依赖于QT5的项目时,出现了错误的qmake,我怀疑以前安装的旧QT4安装中可能会出现问题。
qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
所以我的问题是:
1.如何解决这一错误?
2.如何完全删除Qt4 (并可能重新安装QT5?)?
更新:
which qmake
/usr/bin/qmake
ls -l /usr/bin/qmake
lrwxrwxrw
我正在尝试在Linux上安装Qt5,但是我得到了这个错误:
[root@localhost Desktop]# ./qt-linux-opensource-1.4.0-x86-online.run
./qt-linux-opensource-1.4.0-x86-online.run: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./qt-linux-opensource-1.4.0-x86-online.run)
./qt-linux-opensource-1.4.0-x86-onli
我正在尝试编译,这是的一部分。我将它作为SUBDIRS的一部分包含在subdirs项目中。我通过Qt在qmake上运行了,然后运行了生成的Makefile,并收到了来自moc文件的这个错误:
/the_path/buildlib/moc_qtpropertybrowser.cpp:360: error: member access into incomplete type 'QtAbstractPropertyBrowserPrivate'
case 4: _t->d_func()->slotPropertyInserted((*reinterpre
我在Linux上工作,我在Linux终端上执行了for循环,如下所示:
for i in `cat fileName.txt`
do
echo $i
vim $i
done
fileName.txt是一个包含我在vim编辑器中一个接一个打开的大量文件条目的文件。现在,我必须跳过打开中间的其他文件。(即,我必须中断for循环)。有什么建议如何获得运行for循环的PID吗?然后杀掉同样的人。提前谢谢。
我的/etc/vim/vimrc文件有奇怪的问题。
我试图摆脱VIM中的可视模式,所以我尝试在我的vimrc文件中添加vimrc命令。
然而,我的vim并没有考虑到这些变化。
当我在openend中执行:set mouse-=a时,它会做我想做的事情(选择带有鼠标的文本而不进入可视模式),但是命令在vimrc文件中不能工作。
我还启用了vimrc中的“在重新打开文件时跳转到最后一个位置”,它正在工作,这使我更加困惑。我一直在尝试每一个可能的命令:
set mouse=a
set mouse=r
set mouse-=a
:set mouse-=a
当添加到/etc/vi
我想从源代码中为debian构建vim包,在运行命令dpkg-buildpackage -rfakeroot时我得到了这个错误
dh_clean
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building vim using existing ./vim_8.2.5106.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-sou
我想为ARM设备编译一个Qt程序。
我安装了ARM的工具链,下面是我的qmake.conf文件的样子:
#
# qmake configuration for building with arm-none-linux-gnueabi-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_
我在zsh配置中有下面的函数来编辑vim中的文件。
function note() {
vim "~/.notes/$1.md";
}
因此,如果我输入'note‘,它应该打开~/notes/linux.md,如果它存在,或者创建一个新的文件。
但是,使用上面的函数,当我执行时,Vim会抱怨linux.md是新目录吗?如何强制将此名称假定为文件名,而不是目录名?
谢谢