我的系统中安装了 Ubuntu 20.04 LTS,5.15.0-56-generic
内核5.15.0-53-generic
可用。我在使用这些内核的 wifi 驱动程序时遇到问题,并且想降级到5.15.0-46-generic
我创建的 wifi 驱动程序可以正常工作的实时 usb 上。
只需通过单击复制粘贴是行不通的,但即使通过终端,我也不确定需要复制哪些文件以及需要复制到哪些位置。还需要更新任何配置文件或类似文件以便内核显示在 grub 菜单中吗?
我的系统中安装了 Ubuntu 20.04 LTS,5.15.0-56-generic
内核5.15.0-53-generic
可用。我在使用这些内核的 wifi 驱动程序时遇到问题,并且想降级到5.15.0-46-generic
我创建的 wifi 驱动程序可以正常工作的实时 usb 上。
只需通过单击复制粘贴是行不通的,但即使通过终端,我也不确定需要复制哪些文件以及需要复制到哪些位置。还需要更新任何配置文件或类似文件以便内核显示在 grub 菜单中吗?
我正在尝试在 Ubuntu20.04 上构建 GCC6.3.0,但似乎无法理解/修复错误。
我下载了 tar 文件(从多个镜像中尝试过,总是相同的错误),解压它,在这个解压目录中运行
./contrib/download_prerequisites
它下载并创建所需的快捷方式。然后我离开这个目录,创建一个新目录“gccbuild”,在这个目录中,我运行
$PWD/../gcc-6.3.0/configure --prefix=$HOME/GCC-6.3.0 --enable-languages=c,c++,fortran,go
如果需要,我可以添加完整的输出,很多没有,但我不认为这是问题所在。最后几行输出:
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
然后,我运行 make,以下是输出的最后几行:
/home/m/GCC-6.3.0/x86_64-pc-linux-gnu/include -isystem /home/m/GCC-6.3.0/x86_64-pc-linux-gnu/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc -I/home/m/gccbuild/../gcc-6.3.0/libgcc -I/home/m/gccbuild/../gcc-6.3.0/libgcc/. -I/home/m/gccbuild/../gcc-6.3.0/libgcc/../gcc -I/home/m/gccbuild/../gcc-6.3.0/libgcc/../include -I/home/m/gccbuild/../gcc-6.3.0/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _fixunssfsi.o -MT _fixunssfsi.o -MD -MP -MF _fixunssfsi.dep -DL_fixunssfsi -c /home/m/gccbuild/../gcc-6.3.0/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
make[5]: Leaving directory '/home/m/gccbuild/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [Makefile:1161: multi-do] Error 1
make[4]: Leaving directory '/home/m/gccbuild/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [Makefile:120: all-multi] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/m/gccbuild/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:20436: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/home/m/gccbuild'
make[1]: *** [Makefile:25715: stage1-bubble] Error 2
任何线索将不胜感激!
编辑
我错过了实际的错误部分(感谢 gcc-help 邮件列表中的 Stefan Ring):
In file included from ../../../../gcc-6.3.0/libgcc/unwind-dw2.c:401:0:
./md-unwind-support.h: In function 'x86_fallback_frame_state':
./md-unwind-support.h:141:18: error: field 'uc' has incomplete type
struct ucontext uc;
^~
我正在远程访问 linux 系统 [Ubuntu16.04 LTS]。很多事情似乎都搞砸了。我需要安装libgmp-dev
,这会E: Sub-process /usr/bin/dpkg returned an error code (1)
出错。在尝试了一些事情之后,我认为apt-get update
可能会有所帮助,但sudo apt-get update
会出现错误:
Err:18 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial/main amd64 Packages
404 Not Found
W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial 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.
E: Failed to fetch http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
阅读一些帖子,似乎删除 ppa 是解决方案,但是我不确定如何从命令行执行此操作。这个流行的答案建议sudo apt-get install ppa-purge
在删除 ppa 之前。但是sudo apt-get install ppa-purge
再次运行会出错E: Sub-process /usr/bin/dpkg returned an error code (1)
。
我想尝试该解决方案sudo add-apt-repository --remove ppa:whatever/ppa
,但令人尴尬的是,我不确定要替换什么,whatever
因为我从未安装过这些 ppas(我只能访问该系统)。
的输出ls /etc/apt/sources.list.d
是:
aheck-ubuntu-ppa-xenial.list mc3man-ubuntu-xerus-media-xenial.list nccl-2.1.15-ga-cuda8.0.list.save
aheck-ubuntu-ppa-xenial.list.save multiverse.list opennms.list
blahota-ubuntu-texstudio-xenial.list multiverse.list.save sublime-text.list
blahota-ubuntu-texstudio-xenial.list.save myppa.list sublime-text.list.save
mc3man-ubuntu-trusty-media-xenial.list myppa.list.save
mc3man-ubuntu-trusty-media-xenial.list.save nccl-2.1.15-ga-cuda8.0.list
编辑:
当我apt-get update
从 mc3man 运行很多 ppa 时,除了那个(amd64)之外,没有任何错误,删除所有这些作为grep mc3man *
inside输出的文件是否安全/etc/apt/sources.list.d/
?
mc3man-ubuntu-trusty-media-xenial.list:deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main
mc3man-ubuntu-trusty-media-xenial.list:# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main
mc3man-ubuntu-trusty-media-xenial.list.save:deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main
mc3man-ubuntu-trusty-media-xenial.list.save:# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main
mc3man-ubuntu-xerus-media-xenial.list:deb http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
mc3man-ubuntu-xerus-media-xenial.list:# deb-src http://ppa.launchpad.net/mc3man/xerus-media/ubuntu xenial main
编辑2:
mv mc3man-ubuntu-trusty-media-xenial.list mc3man-ubuntu-trusty-media-xenial.list.bak
工作是因为我在代理后面,现在错误是:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/