Comment 31 for bug 1990450

Revision history for this message
Sebastien Bacher (seb128) wrote (last edit ): Re: Show potential Ubuntu Pro updates

Sharing some tip to try the news feature if there isn't a news available on the server

$ sudo apt install nginx
$ sudo sed -i "s/gzip on;/gzip on;\n\tgzip_min_length 1;\n\tgzip_types application\/json;\n/" /etc/nginx/nginx.conf
$ sudo systemctl restart nginx
$ sudo pro config set apt_news_url=http://localhost:80/aptnews.json
$ sudo editor /var/www/html/aptnews.json

using the content

{
    "messages": [
        {
            "begin": "2023-09-03T00:00:00Z",
            "lines": [
                "You can verify the status of security fixes using the `pro fix` command.",
                "E.g., a recent Ruby vulnerability can be checked with: `pro fix USN-6219-1`",
                "For more detail see: https://ubuntu.com/security/notices/USN-6219-1"
            ]
        }
    ]
}

$ sudo pro refresh messages