我正在使用Ubuntu 14.04。我试图在软件和更新中修改服务器,但失败了。因此,当我尝试使用更新时 sudo apt-get update出现此错误:
W: Failed to fetch http://ppa.launchpad.net/ripps818/coreavc/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ubuntu.mirror.tn/dists/trusty/multiverse/binary-i386/Packages 404 …Run Code Online (Sandbox Code Playgroud) 我正在执行一个简单的 makefile,其中包含 3 个部分,但它不能很好地工作,这些是我的文件 .h 和 .c 的详细信息:
主程序
#include <stdio.h>
#include <stdlib.h>
#include "hello.h"
int main (void)
{
hello();
return EXIT_SUCCESS;
}
Run Code Online (Sandbox Code Playgroud)你好.h
#ifndef hello
#define hello
void hello (void);
#endif
Run Code Online (Sandbox Code Playgroud)你好ç
#include <stdio.h>
#include <stdlib.h>
void hello (void)
{
printf("Hello World\n");
}
Run Code Online (Sandbox Code Playgroud)生成文件
all: hello
hello: hello.o main.o
gcc -o hello hello.o main.o
hello.o: hello.c
gcc -o hello.o -c hello.c -W -Wall -ansi -pedantic
main.o: main.c hello.h
gcc -o main.o -c main.c -W -Wall -ansi -pedantic
clean:
rm …Run Code Online (Sandbox Code Playgroud)