Failed retrieving file ‘code.db’ from packages.microsoft.com

AFter this command: $ sudo pacman -Syu
I AM GETTING THIS ERROR:

:: Synchronizing package databases…
code.db failed to download
error: failed retrieving file ‘code.db’ from packages.microsoft.com : URL rejected: Malformed input to a URL function
error: failed to synchronize all databases (download library error)

THIS IS MY /ETC/PACMAN.CONF
GNU nano 7.2 /etc/pacman.conf

[code]
SigLevel = Optional TrustAll
Server = https://packages.microsoft.com/manjaro/stable main

Welcome to the forum! :vulcan_salute:

First of all, I’m afraid the AUR is not officially supported, and the responsibility of its use is yours only.

Secondly, you are using an unsupported third-party repository — microsoft.com is not an official repository. Please remove that from /etc/pacman.conf.

2 Likes

And thirdly…it really does not exist, this custom manjaro repo on the microsoft server. Maybe it existed before, but not anymore.
So just comment the above section and maybe refresh your mirror list with

sudo pacman-mirrors --continent && sudo pacman -Syu

2 Likes

I’ll also chip in.

If this is, indeed the reason for this, then you probably have numerous .pacnew file you should handle. More here:

https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave

2 Likes

third party repositories not supported

3 Likes

Then which repositiory to use for the retrieval of ‘code.db’

If you’re using that for VS Code, as I suspect, there’s Code - OSS in the extra repository:

$ pamac search code
[...]
code  1.87.0-2                                                                                                                                                                                                                                          extra
The Open Source build of Visual Studio Code (vscode) editor

For what?

Visual Studio Code is available in the official repo

 $ pamac search vscode --no-aur
code  1.87.2-1                                                  extra
    The Open Source build of Visual Studio Code (vscode) editor
vscode-json-languageserver  1.88.0-1                            extra
    JSON language server
vscode-html-languageserver  1.88.0-1                            extra
    HTML language server
vscode-css-languageserver  1.88.0-1                             extra
    CSS/LESS/SCSS language server

And custom build using AUR script

 $ pamac search vscode --aur
vscodium-marketplace  1.65.0-1                                    AUR
    Enable vscode marketplace in vscodium
vscodium-insiders-marketplace  1.72.0-1                           AUR
    Enable vscode marketplace in vscodium
vscodium-git-marketplace  1.70.0-1                                AUR
    Enable vscode marketplace in vscodium
vscodium-bin-marketplace  1.76.0-1                                AUR
    Enable vscode marketplace in vscodium-bin
vscodium-bin  1.87.2.24072-1                                      AUR
    Binary releases of VS Code without MS
    branding/telemetry/licensing.
visual-studio-code-insiders-bin  1705642614-1                     AUR
    Editor for building and debugging modern web and cloud
    applications (insiders version)
visual-studio-code-cli-bin  1.87.2-1                              AUR
    The Visual Studio Code Server is a service you can run on a
    remote development machine, like your desktop PC or a
    virtual machine (VM).
visual-studio-code-bin  1.87.2-1                                  AUR
    Visual Studio Code (vscode): Editor for building and
    debugging modern web and cloud applications (official binary
    version)
python-reorder-python-imports-isort-wrapper  0.1.0-1              AUR
    Wrapper for `reorder-python-imports` to emulate isort --diff
    for \ vscode python plugin and coc-pyright
pylance-language-server  2020.10.0-1                              AUR
    Python language server based on pylance vscode extension.
plasma5-themes-juno-ocean-git  r236.22ab42f-1                     AUR
    GTK themes inspired by epic vscode themes
neovim-lspkind-git  r61.gc68b3a0-1                                AUR
    vscode-like pictograms for neovim lsp completion items
logo-ls  1.3.7-1                                                  AUR
    Modern ls command with vscode like file icon and git
    integrations
kvantum-theme-juno-ocean-git  r236.22ab42f-1                      AUR
    GTK themes inspired by epic vscode themes
juno-theme-git  r194.d2101b2-1                                    AUR
    GTK themes inspired by epic vscode themes
juno-standard-buttons-gtk-theme-git  r148.f0704a4-1               AUR
    GTK themes inspired by epic vscode themes
juno-palenight-standard-buttons-gtk-theme-git  r156.f0a3818-1     AUR
    GTK themes inspired by epic vscode themes
juno-palenight-gtk-theme-git  r150.185be24-1                      AUR
    GTK themes inspired by epic vscode themes
juno-ocean-standard-buttons-gtk-theme-git  r149.6d73f68-1         AUR
    GTK themes inspired by epic vscode themes
juno-ocean-gtk-theme-git  r236.22ab42f-1                          AUR
    GTK themes inspired by epic vscode themes
juno-mirage-standard-buttons-gtk-theme-git  r156.11dd089-1        AUR
    GTK themes inspired by epic vscode themes
juno-mirage-gtk-theme-git  r155.a4af806-1                         AUR
    GTK themes inspired by epic vscode themes
cquery-git  1942.3ac1ff24-2                                       AUR
    Low-latency vscode language server for large C++ code-bases,
    powered by libclang.
code-translucent  1.87.2-1                                        AUR
    The Open Source build of Visual Studio Code (vscode) editor
    with translucent window, official marketplace, unblocked
    proprietary features and wayland support!
code-server-marketplace  4.16.1-1                                 AUR
    Enable vscode marketplace in code-server
code-oss-marketplace  1.77.1-2                                    AUR
    Enable vscode marketplace in code-oss
code-marketplace  1.87.0-2                                        AUR
    Enable vscode marketplace in Code OSS
codelldb-git  v1.9.0.r1084.88d6925-1                              AUR
    A native debugger extension for VSCode based on LLDB. Also
    known as vscode-lldb (NOT lldb-vscode)
codelldb-bin  1.10.0-1                                            AUR
    A native debugger extension for VSCode based on LLDB. Also
    known as vscode-lldb (NOT lldb-vscode)
codelldb  1.10.0-1                                                AUR
    A native debugger extension for VSCode based on LLDB. Also
    known as vscode-lldb (NOT lldb-vscode)
code-git  1.66.0.r94376.gd5b0615eca7-1                            AUR
    The Open Source build of Visual Studio Code (vscode) editor
    - git latest
code  1.87.2-1                                                  extra
    The Open Source build of Visual Studio Code (vscode) editor
aws-asl-languageserver  1.67.0-1                                  AUR
    Language server for AWS Step Function's ASL, extracted from
    aws-toolkit-vscode
adocsnip-bin  0.0.2-1                                             AUR
    manage vscode-style snippets in asciidoc
rust-analyzer-vscode-git  r7300.c9e1aab88-2                       AUR
    An experimental Rust compiler front-end for IDEs (VSCode
    installation).
rofi-vscode-mode  0.5.7-1                                         AUR
    A Rofi mode to open Visual Studio Code workspaces
plasma-runner-vscode-git  r5.7c6bc0c-2                            AUR
    KRunner plugin for quickly opening recent VSCode workspaces
plasma5-runners-vscode-git  r5.7c6bc0c-4                          AUR
    KRunner plugin for quickly opening recent VSCode workspaces
local-lua-debugger-vscode-git  260-1                              AUR
    A simple Lua debugger which requires no additional
    dependencies.
krunner-vscodeprojects-git  r28.c5da093-2                         AUR
    Open VSCode Project Manager projects from Krunner (git)
krunner-vscodeprojects  1.2.0-1                                   AUR
    Open VSCode Project Manager projects from Krunner
gnome-search-providers-vscode  1.16.0-1                           AUR
    Add VSCode workspaces to Gnome search
vscode-php-debug  1.32.1-1                                        AUR
    PHP Debug Adapter (DAP)
vscode-node-debug2  1.43.0-1                                      AUR
    A VS Code debug adapter that supports debugging Node via the
    Chrome Debugging Protocol.
vscode-langservers-extracted  4.8.0-1                             AUR
    Language servers extracted from VSCode.
vscode-codicons-git  0.0.25.r14.aeba110-1                         AUR
    The icon font for Visual Studio Code
3 Likes

Not able to even build from aur repo now,
Was installing dotpac to remove the .pacnew files
Making package: dotpac 0.4-4 (Saturday 06 April 2024 01:30:57 AM)
==> Checking runtime dependencies…
warning: database file for ‘code’ does not exist (use ‘-Sy’ to download)
==> Installing missing dependencies…
[sudo] password for yuvraj:
warning: database file for ‘code’ does not exist (use ‘-Sy’ to download)
error: target not found: dialog
==> ERROR: ‘pacman’ failed to install missing dependencies.
==> Missing dependencies:
→ dialog
==> Checking buildtime dependencies…
==> ERROR: Could not resolve all dependencies.

Who told you to just remove the pacnews? There is a reason why they were created - you have to read and evtl. merge them. And dialog is in the repos, which means your mirrors are not updated and synces. You really should not try to use aur if you are absolute beginner, and generally, you have to read a little how to maintain the system, if you want to use manjaro.

2 Likes

I don’t know why you’d just want to remove the .pacnew files. They should be properly handled, or your system WILL break. I speak from experience.

It would seem there are still remnant of the unsupported repository in /etc/pacnew.

:bangbang: Tip: :bangbang:

In the future, when posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

1 Like

because you didn’t remove these lines from pacman.conf

Remove them and your self-created issue disappears

5 Likes

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.