小编sou*_*uha的帖子

E: 部分索引文件下载失败。它们已被忽略,或使用旧的代替

我正在使用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)

linux debian

7
推荐指数
1
解决办法
3万
查看次数

make: *** [main.o] 错误 1

我正在执行一个简单的 makefile,其中包含 3 个部分,但它不能很好地工作,这些是我的文件 .h 和 .c 的详细信息:

  1. 主程序

    #include <stdio.h>
    #include <stdlib.h>
    #include "hello.h"
    
    int main (void)
    {
         hello();
         return EXIT_SUCCESS;
    }
    
    Run Code Online (Sandbox Code Playgroud)
  2. 你好.h

    #ifndef hello
        #define hello
        void hello (void);
    #endif
    
    Run Code Online (Sandbox Code Playgroud)
  3. 你好ç

    #include <stdio.h>
    #include <stdlib.h>
    
    void hello (void)
    {
        printf("Hello World\n");
    }
    
    Run Code Online (Sandbox Code Playgroud)
  4. 生成文件

    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)

gcc makefile

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

debian ×1

gcc ×1

linux ×1

makefile ×1