Skip to content

sh: 1: Syntax error: "}" unexpected when I do a sudo apt install #8

@MoezLog

Description

@MoezLog

After installing the Ubuntu 24.04 script, I receive this error everytime I do a sudo apt install any tool:

sh: 1: Syntax error: "}" unexpected E: Problem executing scripts DPkg::Post-Invoke 'if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; };' E: Sub-process returned an error code

According to chatGPT, the problem should be here in this file /etc/apt/apt.conf.d/99update-notifier:
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; };";

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