Tag: apt

由于shared-mime-info.postinst错误,sudo apt-get升级失败

在我的服务器上,我遇到了以下问题。 sudo apt-get update工作成功,但sudo apt-get upgrade失败,出现以下错误。 请帮我解决这个问题。 administrator@myserver:~$ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done The following packages have been kept back: firefox linux-headers-server linux-image-server linux-server 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 21 not fully installed or removed. After this operation, 0B […]

如何在/ var / cache / apt / archives中使文件始终具有世界可读性?

我希望/var/cache/apt/archives中的文件始终具有每个人的读取权限。 也就是说,每当apt将一个新文件下载到这个目录中时,它应该使它具有世界可读性。 目前情况并非如此, ls -l /var/cache/apt/archives的示例条目如下所示: -rw——- 1 root root 26928 2009-05-03 20:34 /var/cache/apt/archives/sl_3.03-16_amd64.deb 我该怎么做才能让文件始终具有世界可读性? (旁白:我想要这个,因为我在局域网上有一些Ubuntu笔记本电脑并使用scp或rsync我偶尔会将/var/cache/apt/archives从一台笔记本电脑复制到另一台笔记本电脑。我不使用apt-cacher或squid- deb-proxy等因为在任何时候笔记本电脑的任何子集都可能连接到网络;我没有中央服务器。)

“无法找到包python-pip”当尝试从新鲜的18.04安装时安装

我在网上关注python的教程,它让我这样做: akclark@enceladus:~$ pip install virtualenv 但是我得到了以下内容: Command ‘pip’ not found, but can be installed with: sudo apt install python-pip 够容易吧? 所以我试试.. akclark@enceladus:~$ sudo apt install python-pip 但我得到一个错误…… Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package python-pip 我究竟做错了什么? 编辑:每个评论我已经尝试过sudo apt update EDIT2:我尝试了apt-cache madison python-pip并得到了 N: Unable to locate […]

以编程方式禁用apt无人值守升级

如何以编程方式/脚本禁用无人值守的升级? 运行Ubuntu 16.04。

将群集控制器连接到区域控制器(MaaS)

我正在尝试构建一个MaaS集群,这是我到目前为止所做的: 区域控制器 安装ubuntu 14.10 配置接口 配置DNS apt update apt upgrade apt install maas-region-controller dpkg-reconfigure maas-region-controller —-> http://192.168.10.1/MAAS/ 创建新的root帐户 登录 群集控制器 安装ubuntu 14.10 配置接口 配置DNS apt update apt upgrade apt install maas-cluster-controller dpkg-reconfigure maas-cluster-controller —-> 192.168.10.1 maas login http://192.168.10.1/MAAS/ 检查MaaS Web界面… 群集选项卡中不显示任何群集。 只是为了确认他们在同一个网络上。 无论我是否可以从群集控制器登录maas …但它似乎没有对结果产生影响。 我已经对这个问题进行了4天的故障排除了,而且它变得越来越粗糙….有谁知道是什么让这两者正常通信?

为什么archive.ubuntu.com不使用HTTPS?

我总是看到添加Universe和Multiverse存储库的说明,如下所示: sudo add-apt-repository -y “deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse” 最近我尝试编辑它来代替使用HTTPS,并且惊愕地发现archive.ubuntu.com似乎没有响应HTTPS。 现在我想知道如果攻击者成功地在这里进行中间人攻击,它会有多可行,或者可以造成什么样的伤害呢? 考虑到这些存储库在系统上的作用,我是不是太偏执了?

如何从apt-get问题中恢复

我试图安装readline作为octave 4.0.0的依赖。 然后apt-get install和提示执行的问题 sudo apt-get -f install. 以下是我收到的内容: xxxx@xxxx-MS-7577:~$ sudo apt-get -f install [sudo] password for xxxx: Reading package lists… Done Building dependency tree Reading state information… Done Correcting dependencies… Done The following extra packages will be installed: libc6-dev-i386 The following NEW packages will be installed: libc6-dev-i386 0 upgraded, 1 newly installed, 0 to […]

如何通过APT停止连续降级?

每次我去终端进行更新+升级时,都要降级2个软件包( debhelper和dh-autoreconf )。 这是我收到的消息: The following packages will be DOWNGRADED: debhelper dh-autoreconf 0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded. Need to get 0 B/854 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] 前几次我继续使用它但是在它完成之后立即检查包并要求我降级那两个相同的包。 昨天我试图安装一台爱普生扫描仪并安装了一些东西(其中包括sane和iscan)。 我已经尝试重新安装它想要降级的两个软件包(使用synaptic软件包管理器),但是一旦我这样做,synaptic会将它们标记为降级。 […]

由于“未满足的依赖关系”,无法安装libssl1.0.0:i386?

我已阅读并遵循此问题中的建议无济于事。 我试图在我的14.04框(amd64)上安装libssl1.0.0:i386 ,但是当我尝试通过APT执行此操作时,收到以下错误消息: nathan@nathan-desktop:~$ sudo apt-get install libssl1.0.0:i386 Reading package lists… Done Building dependency tree Reading state information… Done 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 packages have not yet been created or been moved […]

试图修复破坏的依赖项(Libre Office)

我卸载了Libreoffice并仅安装了Openoffice以了解我不再喜欢OpenOffice了。 我今天卸载了OpenOffice并尝试安装LibreOffice并且我收到了错误。 The following packages have unmet dependencies: libreoffice-core : Depends: libreoffice-common (> 1:4.2.7) but it is not installed libreoffice-help-en-us : Depends: libreoffice-l10n-en-us libreoffice-java-common : Depends: libreoffice-common but it is not installed libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not installed libreoffice-l10n-en-za : Depends: libreoffice-common but it is not installed y-ppa-manager : Depends: yad (>= […]