apt

使用docker安装onlyoffice Document Server,同时解决中文乱码

匿名 (未验证) 提交于 2019-12-03 00:38:01
使用docker安装onlyoffice Document Server 编辑历史: 2018.5.24 Geyh 文档初始化 1. 系统要求 中央处理器 双核2 GHz或更好 内存 2 GB或更多 硬盘 至少40 GB的可用空间 其他要求 至少2 GB的交换 OS 内核版本为3.10或更高版本的amd64 Linux发行版 其他要求 :Docker:版本1.10或更高版本 2. 安装文档服务器 NB: Docker默认指定Google DNS服务器。如果您的文档服务器无法访问 Internet,我们建议您将默认的Docker DNS地址更改为本地DNS服务器的地址。为此,请转到该/etc/default/docker文件,并将以下行中的IP地址更改为本地网络中DNS服务器的IP地址: docker_OPTS="--dns 8.8.8.8" 安装Docker后,运行它并执行以下命令: sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver 3. 安装文档服务器:将数据存储在容器外部(强烈建议) 所有数据都存储在以下位置的特定目录中: /var/log/onlyoffice 用于文档服务器日志 /var/www/onlyoffice/Data 用于映射数据 /var/lib

Ubuntu/Debian下 apt-get command not found 命令无法找到的解决方法

匿名 (未验证) 提交于 2019-12-03 00:34:01
apt 是能够管理deb软件,其用法在此不再赘述,Google百度一大堆。 而其本身也是一个软件,如果提示找不到命令 command not found 1.可能是打错字了,这个。。。 2.可能系统不是Debian家族的,如果是红帽家的请适用yum,不很了解。 3.可能是环境变量错了,正常情况下,或者说是默认情况下,apt及其附属命令如apt-get, apt-cache等命令位于/usr/bin目录下,请检查这个目录下有没有: 如果有,就是环境变量没有配置好,可以参照http://www.cnblogs.com/archimedes/p/linux-envionment-variables.html配置一下; תhttps://www.cnblogs.com/huangbangshun/p/4174922.html 如果没有,可能是第三种情况;别急,你可以先搜索一下apt,看看是不是在其他文件夹中; 4.软件丢失,我当时就是这种情况。 可以下载apt安装包,安装这个软件。 mirrors.163.com/debian/pool/main/a/apt/ mirrors.163.com/ubuntu/pool/main/a/apt/ 在目录下选择以 “apt_数字版本号” 开头、扩展名是deb 的文件下载,注意32、64位系统。 注意:不需要 下载来之后就是安装了 目的路径一般是 /

Removing broken packages in Ubuntu

不羁岁月 提交于 2019-12-03 00:30:19
There was an error when I tried to remove a package, so it was left in a broken state. I tried the following: sudo dpkg --remove --force-remove-reinstreq rvm Output: (Reading database ... 41743 files and directories currently installed.) Removing rvm (1.29.3-1) ... bash: rvm: command not found dpkg: error processing package rvm (--purge): subprocess installed pre-removal script returned error exit status 127 Errors were encountered while processing: rvm . sudo dpkg --purge rvm Output: same as above sudo dpkg -i --force-overwrite package Output: dpkg: error processing archive rvm (--install):

Install R 3.1.2 on Wheezy 7.8 (Raspbian) fails

荒凉一梦 提交于 2019-12-03 00:29:35
I'm a newbie to Linux and try to install the latest R version on my Raspberry. My Raspberry runs on Wheezy 7.8. I followed instructions on CRAN , so I added deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/ to /etc/apt/sources.list ran apt-get update which was successful and gave me only a "signature error" for the public key as pointed out on the CRAN-site ran apt-get install r-base But the result of the last command is 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

使用kubeadm 在ubuntu,centos下安装kubernetes

匿名 (未验证) 提交于 2019-12-03 00:22:01
kubeadm 官方文档 centos [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/ enabled= 1 gpgcheck= 0 #docker yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo ubuntu apt-get -y install apt-transport-httpsca-certificates curl software-properties-common #kubernetes curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg |apt-key add - cat<< EOF >/etc/apt/sources.list.d/kubernetes.list deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main EOF #docker源,18.04暂时没源,直接执行下面命令添加16.04的源

ubuntu16 安装Typora

匿名 (未验证) 提交于 2019-12-03 00:22:01
sudo apt -key adv -- keyserver keyserver . ubuntu . com -- recv -keys BA300B7755AFCFAE sudo add -apt -repository 'deb https://typora.io ./linux/' sudo apt -get update sudo apt -get install typora 文章来源: ubuntu16 安装Typora

Ubuntu 18下C/C++ IDE之CodeLite安装

匿名 (未验证) 提交于 2019-12-03 00:22:01
Ubuntu 18下C/C++ IDE之CodeLite 安装方法 如下: sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc sudo apt-add-repository 'deb https://repos.codelite.org/ubuntu/ bionic universe' sudo apt-get update sudo apt-get install codelite wxcrafter 运行上述命令后,CodeLite即安装完成,然后在终端输入codelite即可打开CodeLide IDE。亦可在左下角的“显示应用程序”中找到CodeLite的快捷方式,通过快捷方式打开CodeLite。 文章来源: Ubuntu 18下C/C++ IDE之CodeLite安装

Ubuntu 18下C/C++ IDE之CodeLite安装

匿名 (未验证) 提交于 2019-12-03 00:22:01
Ubuntu 18下C/C++ IDE之CodeLite 安装方法 如下: sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc sudo apt-add-repository 'deb https://repos.codelite.org/ubuntu/ bionic universe' sudo apt-get update sudo apt-get install codelite wxcrafter 运行上述命令后,CodeLite即安装完成,然后在终端输入codelite即可打开CodeLide IDE。亦可在左下角的“显示应用程序”中找到CodeLite的快捷方式,通过快捷方式打开CodeLite。 文章来源: Ubuntu 18下C/C++ IDE之CodeLite安装

centos yum Could not resolve host: apt.sw.be; Name or service not known&quot; Trying other mirror.&quot;

匿名 (未验证) 提交于 2019-12-03 00:22:01
yum install gcc-c++ centos 使用yum安装gcc时报了这个错 百度一搜是yum的镜像文件太旧了,DNS解析有问题。 可解决的方法有两个,一个是更新yum,一个是修改DNS。 这里记录一个更新yum方式的方法。 cd /etc/yum.repos.d/ 下载新的CentOS-Base.repo 到/etc/yum.repos.d/,不同系统版本下载不同 5.*的下载连接: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 6.*的下载连接: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 7.*的下载连接: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo我 本人下载完后,就可以用了。参考的文章还作了update操作。 [root@localhost ~]# rpm -e rpmforge-release --nodeps [root@localhost ~]# yum clean all

E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)

匿名 (未验证) 提交于 2019-12-03 00:21:02
方法一: 执行一下 sudo dpkg --configure -a 方法二: sudo rm /var/lib/apt/lists/lock 转载请标明出处: E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用) 文章来源: E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)