Tag: apt

我可以在Precise上使用8.04 Hardy软件包或存储库吗?

我正在使用Precise Pangolin,我有时会注意到我想安装的软件包存在http://us.archive.ubuntu.com/ubuntu/ hardy main但不在http://us.archive.ubuntu.com/ubuntu/ precise main 。 我有两个相关的问题: 手动安装这些软件包是否安全(例如从http://packages.ubuntu.com/hardy下载?) 如果是这样,我还可以将这些强大的资源添加到我的/etc/apt/sources.list吗? deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu/ hardy main deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main

无法在ubuntu16.0.4中安装mysql-server

sudo apt-get install mysql-server失败了阻塞此时 var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-common/configure-symlinks: No such file or directory 我发现这个bug的解决方案是注释/var/lib/dpkg/info/mysql-server-5.7.postinst文件中的第143行。 但我的问题是我找不到/var/lib/dpkg/info/mysql-server-5.7.postinst文件..不要说评论一行。 那么如何摆脱陷入困境的局面呢 ps:我已经安装了mariadb并通过我google搜索的步骤将其卸载 更新: 我已按照第一个答案给出的步骤进行操作,之前仍然提示错误 令人惊讶的是,这次我可以sudo vim /var/lib/dpkg/info/mysql-server-5.7.postinst file并且我对第143行进行注释,但它报告了另一个错误 ERROR: Unable to start MySQL server: 2017-11-26T08:51:57.033255Z 0 [Note] mysqld (mysqld 5.7.20-0ubuntu0.16.04.1-log) starting as process 22612 … 2017-11-26T08:51:57.034651Z 0 [ERROR] You have enabled the binary log, but you haven’t provided the mandatory […]

在ubuntu 17.04上安装macbuntu 16.10主题

我刚刚安装了17.04,我想安装它: http : //www.noobslab.com/2016/11/macbuntu-1610-transformation-pack-for.html 但是,存储库不起作用。 我认为有一个简单的技巧来调整存储库以允许在Zesty而不是xenial上安装。 例如,安装图标存储库并尝试安装后会发生这种情况: ole@mkiv:~$ sudo apt-get install macbuntu-os-icons-lts-v8 Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package macbuntu-os-icons-lts-v8 知道怎么解决这个问题吗?

Apt-get update错误启动板

每当我apt-get update我都会在最后收到此错误消息: W: The repository ‘http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists trusty Release’ does not have a Release file. N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository ‘http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release’ does not have a Release file. N: Data […]

处理包shim-signed时出错

我刚刚在我的Ubuntu 16.04安装上运行apt-get升级,我收到此错误: Do you want to continue? [Y/n] Y Setting up shim-signed (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) … Installing for x86_64-efi platform. grub-install: error: /boot/efi doesn’t look like an EFI partition. . dpkg: error processing package shim-signed (–configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: shim-signed E: Sub-process /usr/bin/dpkg returned an error […]

如何获取存储库以覆盖该存储库中所有软件的所有其他存储库?

对于该存储库中的所有软件,如何获取特定存储库以覆盖所有其他存储库? (在任何时候,无论其他任何存储库做什么。) 解决问题1后,需要什么才能使系统恢复到原始状态(关于LibreOffice,请参阅背景知识 )。 欲望: 所有解决方案均来自命令行。 您实际使用或已经使用过您正在提供的解决方案。 (参见参考资料) 背景: 官方14.04最近更新了LibreOffice,导致官方存储库安装并覆盖了LibreOffice PPA,错误信息是: # apt-get update # apt-get upgrade … snip … You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies: libreoffice-calc : Depends: libreoffice-base-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed […]

从Ubuntu卸载Deepin DE

我目前正在笔记本电脑上运行Ubuntu GNOME 17.04,事情进展顺利。 今天,我觉得有点无聊,所以我想我会尝试Deepin桌面环境。 我按照本网站上另一个问题的说明进行操作。 说明是在终端中键入以下命令: sudo add-apt-repository ppa:leaeasy/dde sudo apt-get update sudo apt-get install dde 完成后,我重新启动并看到了Deepin的登录屏幕。 我登录后,绕过了所有function。 但过了一段时间,我感到无聊,想切换回GNOME。 我退出了,登录了GNOME。 我打开终端,输入以下命令:( 注意:所有的深度应用程序都可以在我的GNOME会话中使用,并且可以正常工作。虽然我在关闭它们后会收到错误报告。并且深度终端设置了作为我的默认终端。 ) sudo apt purge dde ; sudo apt autoremove 我以为工作已经完成了。 但是在我重新启动之后,我仍然得到了Deepin登录屏幕(我的默认是使用Unity Greeter的LightDM)。 我从DE列表中选择了GNOME。 但是在登录GNOME之后,我看到Deepin终端仍然存在(并设置为默认终端)。 我尝试再次运行我以前的命令,但它说没有找到包dde。 现在,如果我尝试登录Deepin,它会登录,但除了壁纸之外,屏幕没有任何内容。 我该怎么办? 我还没有在网上找到解决方案。

“包依赖关系无法解决” – R项目

我在我的计算机上使用R统计数据(“r-base”),最近,我错误地在终端中运行了以下命令: sudo apt-get remove r-base-core 当然这从我的电脑中删除了R. 为了解除我的错误,我尝试重新安装但是收到以下消息: Some packages could no be installed. This might mean that you requested an impossible situation or, if you are using a unstable distribution, that some packages requested were not created or removed from “incoming”. The following information might help to solve the problem: These Packages have unmet dependencies: […]

什么是包装期间的changelog.Debian.gz文件?

包装我遇到以下错误 dh_builddeb dpkg-deb: building package `remotedevicecontroller’ in `../remotedevicecontroller_1.0-1_i386.deb’. dpkg-source -b remotedevicecontroller-1.0 dpkg-source: info: using source format `3.0 (quilt)’ dpkg-source: error: unwanted binary file: debian/remotedevicecontroller/usr/share/doc/remotedevicecontroller/changelog.Debian.gz dpkg-source: error: detected 1 unwanted binary file (add it in debian/source/include-binaries to allow its inclusion). dpkg-buildpackage: error: dpkg-source -b remotedevicecontroller-1.0 gave error exit status 29 为什么文件是由debian-helper创建的,为什么它又要求将它包含在其他目录中呢?

如何使用dpkg-query命令(带管道)的正确方法?

我将此别名添加到.bashrc (当然在一行中),但不幸的是,这不起作用: alias lspkg=”dpkg-query -W -f=’${db:Status-Abbrev}\t${binary:Package} – ${binary:Summary}\n’ | awk -F’\t’ ‘/^ii/ {print $2}'” 知道为什么吗? 我试图反斜杠反斜杠或单引号,没有更好的结果。 参考: 如何将已安装的软件包传递给apt-cache?