Skip to content

Output from package manager: | E: Type 'Types:' is not known on line 51 in source list #262

@delriounicc

Description

@delriounicc

Describe the bug
When I try to update my VM Ubuntu 22.04.4 LTS I couldn´t upgrade the updates with the classification "Other". It failed. I tried 2 times with the same error.
There were 10 updated not installed on the VM.
The error that I could see on the logs was:
2024-07-17T06:57:48Z> [APM] Refreshing local repo... [Sources=/var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.55/tmp/azgps-patch-custom-9c5d4163-b5ac-4ecc-a617-11492d9680d5.list]
DEBUG: Invoking package manager using: sudo apt-get -q update -oDir::Etc::Sourcelist=/var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.55/tmp/azgps-patch-custom-9c5d4163-b5ac-4ecc-a617-11492d9680d5.list
2024-07-17T06:57:48Z> [ERROR] Package manager was invoked using: sudo apt-get -q update -oDir::Etc::Sourcelist=/var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.55/tmp/azgps-patch-custom-9c5d4163-b5ac-4ecc-a617-11492d9680d5.list
2024-07-17T06:57:48Z> WARNING:- Return code from package manager: 100
2024-07-17T06:57:48Z> WARNING:- Output from package manager: | E: Type 'Types:' is not known on line 51 in source list /var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.55/tmp/azgps-patch-custom-9c5d4163-b5ac-4ecc-a617-11492d9680d5.list | E: The list of sources could not be read.
2024-07-17T06:57:48Z> ERROR:[APM] Error in modifying custom sources list. [Error=Exception('Unexpected return code (100) from package manager on command: sudo apt-get -q update -oDir::Etc::Sourcelist=/var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.55/tmp/azgps-patch-custom-9c5d4163-b5ac-4ecc-a617-11492d9680d5.list', '')]

To Reproduce
Steps to reproduce the behavior:

  1. Run one-time update or scheduled update on a VM Ubuntu 22.04.4 LTS

Expected behavior
The expected behaviour is that all the updates were successfully installed.

Screenshots
image
image

**patch_17072024.txt

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions