使用 graphics.h 时出错

使用 graphics.h 时出错

我去过地点 知道如何使用 graphics.h

但是使用时出现错误

sudo apt-get 安装 libsdl-image1.2 libsdl-image1.2-dev guile-1.8 \ guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \ libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev \ libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev \ libslang2-dev libasound2 libasound2-dev

我收到如下错误:

koolman@ubuntu:~$ sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev  
正在读取软件包列表...完成
构建依赖关系树   
正在读取状态信息...完成  
libaa1已经是最新版本(1.4p5-44build1)。  
libasound2 已经是最新版本 (1.1.0-0ubuntu1)。  
libfreetype6已经是最新版本(2.6.1-0.1ubuntu2.3)。  
以下软件包已自动安装并且不再需要:  
 linux-headers-4.10.0-28 linux-headers-4.10.0-28-通用 linux-image-4.10.0-28-通用 linux-image-extra-4.10.0-28-通用  
使用“sudo apt autoremove”来删除它们。  
将会安装以下附加软件包:  
 自动工具开发 esound-common guile-1.8-libs libaudiofile1 libcaca-dev libdirectfb-1.2-9 libdrm-dev libesd0 libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgmp-dev libgmpxx4ldbl libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libltdl-dev liblzma-dev libncurses5-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng12-dev libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libpulse0 libpulsedsp libreadline6-dev libsdl1.2-dev libtiff5-dev libtiffxx5 libtinfo-dev libtool libwebp-dev libwebpdemux1 libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev pulseaudio pulseaudio-module-bluetooth pulseaudio-module-x11 pulseaudio-utils x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev zlib1g-dev   
建议的软件包:guile-1.8-doc libasound2-doc pulseaudio-esound-compat libglib2.0-doc gmp-doc libgmp10-doc libmpfr-dev libtool-doc liblzma-doc ncurses-doc readline-doc autoconf automaken gfortran | fortran95-compiler gcj-jdk libxcb-doc libxext-doc pavumeter pavucontrol paman paprefs  
将会安装以下新软件包:  
 自动工具开发 esound-common guile-1.8 guile-1.8-dev guile-1.8-libs libaa1-dev libart-2.0-dev libasound2-dev libaudiofile-dev libaudiofile1 libcaca-dev libdirectfb-1.2-9 libdirectfb-dev libdirectfb-extra libdrm-dev libesd0 libesd0-dev libfreetype6-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgmp-dev libgmpxx4ldbl libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libltdl-dev liblzma-dev libncurses5-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng12-dev libpthread-stubs0-dev libpulse-dev libreadline6-dev libsdl-image1.2 libsdl-image1.2-dev libsdl1.2-dev libsdl1.2debian libslang2-dev libtiff5-dev libtiffxx5 libtinfo-dev libtool libwebp-dev libwebpdemux1 libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev zlib1g-dev  
以下软件包将会升级:  
 libpulse-mainloop-glib0 libpulse0 libpulsedsp pulseaudio pulseaudio-module-蓝牙 pulseaudio-module-x11 pulseaudio-utils  
7 个已升级,81 个已新安装,0 个已删除,77 个未升级。  
需要获取 756 kB/15.9 MB 的档案。  
此操作后,将使用75.3 MB的额外磁盘空间。  
您想继续吗?[Y/n] Y  
忽略:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 x11proto-core-dev 全部 7.0.31-1~ubuntu16.04.1  
错误:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mesa-common-dev amd64 17.0.7-0ubuntu0.16.04.1 404 未找到 [IP: 91.189.91.23 80]  
错误:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgl1-mesa-dev amd64 17.0.7-0ubuntu0.16.04.1 404 未找到  
[IP: 91.189.91.23 80] 错误:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 x11proto-core-dev all 7.0.31-1~ubuntu16.04.1 404 未找到   
[IP:91.189.91.23 80] E:无法获取 http://us.archive.ubuntu.com/ubuntu/pool/main/x/x11proto-core/x11proto-core-dev_7.0.31-1~ubuntu16.04.1_all.deb 404 未找到  
[IP:91.189.91.23 80] E:无法获取 http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-common-dev_17.0.7-0ubuntu0.16.04.1_amd64.deb 404 未找到  
[IP:91.189.91.23 80] E:无法获取 http://us.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-dev_17.0.7-0ubuntu0.16.04.1_amd64.deb 404 未找到   
[IP: 91.189.91.23 80] E: 无法获取某些档案,也许运行 apt-get update 或尝试使用 --fix-missing?

相关内容