Sascha Manns

My personal Blog about Linux, Windows Programming and other random stuff.

Work From inside my work.

Package update fails for postinst scripts

Problem [German] Recently an apt upgrade aborted because there was a problem in a package with the scripts that were supposed to be executed after the installation. The whole thing looked like this: So the problem here was in the pengwin-base package. Solution First I changed to the directory /var/lib/dpkg/info and searched for the file pengwin-base.postinst. Now I opened the file in an editor …
Linux Lesson learned Pengwin Windows Subsystem for Linux

Minimal API-Key Solution

Problem I was looking for a solution to provide a minimal solution for API key checks with minimal effort. Solution ApiKeyMiddleware.cs: public class ApiKeyMiddleware { private readonly RequestDelegate _next; private const string APIKEYNAME = "ApiKey"; public ApiKeyMiddleware(RequestDelegate next) { _next = next; } public async Task InvokeAsync(HttpContext …
.NET ASP .NET Core Lesson learned