我删除了旧内核(使用dpkg -P),现在我尝试安装的许多包都抱怨丢失了旧的(删除的)内核作为依赖项。
如果我按建议做一个"apt-get安装-f“,我的旧内核就会重新安装.
sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree
Reading state information... Done
synaptic is already the newest version (0.83).
You might want to run 'apt-get
我想用这样一句话编译代码:
c++ -I /usr/boost_1_53_0 boost_test.cpp -o boost \ /usr/lib/boost/libboost_regex.a
但它抛出了
c++: error: /usr/lib/boost/libboost_regex.a: No such file or directory
我确信,libboost_regex.a已经存在于上面提到的目录中。如何解决?我是第一次接触ubuntu和linux。期待你的提示。谢谢。
我刚刚把我的Ubuntu从焦点(20.04)升级到jammy(22.04),现在我的python坏了。这会引起很多麻烦,比如Apt不会更新,一些应用程序也不会启动。
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.6-1~22.04.2) but 3.10.9-1+focal2 is to be installed
作为ubuntu包文档,3.10.6.1是当前(jammy)版本。但是为什么它要安装一个焦点包(3.10.9.1 =月球(23.04))。
我尝试安装python 3.11 (我以前运行3.10)。但是Apt仍然抛出这个错
又是我。我试图运行以下命令:sudo apt-get remove bitcoind,但我得到了以下响应:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-generic-hwe-16.04 :
无论我尝试做什么,无论是安装新软件,还是尝试sudo apt-获得升级。
有时我总是出错:(当我尝试sudo apt升级时)
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-generic-hwe
不知何故,我似乎在文件名中生成了带有回车(\r)的文件:
$ ls -1 tri-rods.tm.dat*
tri-rods.tm.dat
'tri-rods.tm.dat'我试着用"\r“来查找,但什么也找不到:$ find . -type f -name '*\r'我如何列出/查找和删除这些文件?加上"?“对于文件名工作,所以我可以一个一个地删除它们,但我更喜欢一个更一般的方式。注意:我正试图通过Cygwin/git-bash/Windows子系统在Windows上实现Linux,所以可能有些命令不能像预期的那样工作。\r'
$ ls
好了,伙计们,这就是我得到的
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.1 MB of archives.
Aft
我正在尝试安装virtualbox。我以前安装过它,它还能工作。今天,我尝试添加另一台虚拟机,它开始抱怨dkms的问题,所以我尝试清除并安装以下故障。
$ sudo apt install virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dkms libgsoap-2.8.91 libqt5opengl5 libsdl1
我似乎还记得今年早些时候做过建议的autoremove,并在这个过程中阻塞了我的系统。linux-headers-generic和linux-image-generic似乎很重要。
phm@LuckyCompCo:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installe