Skip to content

no Package: header / Problem with MergeList  #28

Description

@MartinVerges

Hi,

I currently looking into deb-simple as it looks promising. Unfortunately I encounter a problem that I can't circumvent.

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/localhost:9090_dists_stable_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

my conf.json looks like the default one

{
    "listenPort" : "9090",
    "rootRepoPath" : "/opt/mirror",
    "supportedArch" : ["amd64"],
    "distroNames" : ["stable"],
    "sections" : ["main"],
    "enableSSL" : true,
    "SSLcert" : "server.crt",
    "SSLkey" : "server.key",
    "enableAPIKeys" : false,
    "enableSigning" : true,
    "privateKey" : "./private.key"
}

I generated the private/public key with -k -ke -kn option. The SSLcert is just a snakeoil from my ubuntu.

After initial start I upload some test files from my current deb mirror via for file in $(find . -name *_amd64.deb); do curl -k -X POST 'https://localhost:9090/upload?arch=amd64&distro=stable&section=main' -F "file=@$file"; done. I don't get an error message on upload from curl, nor from the server output (started with -v flag).

My /etc/apt/sources.list contains deb [arch=amd64] https://localhost:9090/ stable main.

How to prevent the error from happening? I already tried sudo rm /var/lib/apt/lists/* -vf without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions