Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] [Request] Problem with the installation of basic software

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
buggy69
Posts: 3
Joined: 2024-03-16 08:02
Has thanked: 3 times

[Solved] [Request] Problem with the installation of basic software

#1 Post by buggy69 »

Hi, I'm writing because I have a problem with the installation of some application from the standard library of Linux.
In particular I tryed the installation of GParted both whit terminal and "Software" (I mean the default application).
I'm using Linux Debian 12 and I censored the IPs address in the code.
Here the code:

Code: Select all

sudo apt-get install gparted
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  gparted-common policykit-1 polkitd-pkla
Suggested packages:
  dmraid gpart jfsutils kpartx mtools reiser4progs reiserfsprogs udftools
  xfsprogs
The following NEW packages will be installed:
  gparted gparted-common policykit-1 polkitd-pkla
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,586 kB of archives.
After this operation, 8,876 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://ftp.it.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1
Ign:2 http://ftp.it.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3
Ign:3 http://ftp.it.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1
Ign:4 http://ftp.it.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3
Ign:1 http://ftp.it.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1
Ign:2 http://ftp.it.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3
Ign:3 http://ftp.it.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1
Ign:4 http://ftp.it.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3
Ign:1 http://ftp.it.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1
Ign:2 http://ftp.it.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3
Ign:3 http://ftp.it.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1
Ign:4 http://ftp.it.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3
Err:1 http://ftp.it.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1
  Bad header line Bad header data [IP: *.*.*.* *]
Err:2 http://ftp.it.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3
  Bad header line Bad header data [IP: *.*.*.* *]
Err:3 http://ftp.it.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1
  Bad header line Bad header data [IP: *.*.*.* *]
Err:4 http://ftp.it.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3
  Bad header line Bad header data [IP: *.*.*.* *]
E: Failed to fetch http://ftp.it.debian.org/debian/pool/main/g/gparted/gparted-common_1.3.1-1_all.deb  Bad header line Bad header data [IP: *.*.*.* *]
E: Failed to fetch http://ftp.it.debian.org/debian/pool/main/p/policykit-1/policykit-1_122-3_amd64.deb  Bad header line Bad header data [IP: *.*.*.* *]
E: Failed to fetch http://ftp.it.debian.org/debian/pool/main/g/gparted/gparted_1.3.1-1_amd64.deb  Bad header line Bad header data [IP: *.*.*.* *]
E: Failed to fetch http://ftp.it.debian.org/debian/pool/main/p/policykit-1/polkitd-pkla_122-3_amd64.deb  Bad header line Bad header data [IP: *.*.*.* *]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Do you have some advice in order to fix the problem?

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: [Request] Problem with the installation of basic software

#2 Post by sunrat »

Try changing your sources to the default. Something like:

Code: Select all

deb https://deb.debian.org/debian/ bookworm non-free-firmware non-free contrib main
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

buggy69
Posts: 3
Joined: 2024-03-16 08:02
Has thanked: 3 times

Re: [Request] Problem whit the installation of basic software

#3 Post by buggy69 »

Sorry, can I ask you if you can tell me how I can do that?
Because I undertand want I have to do but I don't know how to do it.
I have recently started to use Linux so can you tell me where I have to modify or can you give me the code that I should typing in the Terminal.

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: [Request] Problem with the installation of basic software

#4 Post by Aki »

Hello,

The Debian Wiki is a useful source of information; you can read here (Italian version is available), i.e.: Then, from the command line you can check/modify the configuration file named "/etc/apt/sources.list" with the following command (root password is required):

Code: Select all

sudo apt edit-sources
Then, you can change the repository configuration and save it.

Then you need to update the configuration with the command:

Code: Select all

sudo apt update
sudo apt install gparted
Hope this helps.

--
notes:
1) typo in the subject corrected ('with' -> 'with')
2) discussion moved from "Board index > Community Forum information, requests, and feedback." to "Board index > Help > Installation"
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2117
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 232 times

Re: [Request] Problem with the installation of basic software

#5 Post by FreewheelinFrank »

In addition to what Aki said, the Debian Wiki mentions software-properties-gtk (which I think comes by default with Gnome) but not the GUI option in Synaptic, where you can add lines or edit existing lines.


Image


An alternative to apt edit-sources is to open sources.list directly in a terminal editor of your choice, for example:

Code: Select all

# nano /etc/apt/sources.list
having obtained root with

Code: Select all

su -
or

Code: Select all

$ sudo nano /etc/apt/sources.list
if you prefer sudo.

apt edit-sources will just ask you to choose from terminal editors available on you system (it suggests nano on mine anyway). The above command can be used to edit any system configuration file, with the usual proviso that you need to be careful editing system files.

buggy69
Posts: 3
Joined: 2024-03-16 08:02
Has thanked: 3 times

Re: [Request] Problem with the installation of basic software

#6 Post by buggy69 »

Thank you so much guys <3
You were very helpful!
Now it works.
Thanks again to everyone!

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: [Request] Problem with the installation of basic software

#7 Post by Aki »

I'm glad you sorted it out. :)

Please, mark the discussion as "solved" manually adding the text tag "[Solved]" at the beginning of the subject of the first message (after other tags, if any). It is also an opportunity to the make the subject more understandable to other forum users and readers, if necessary; i.e. :
[Request] [Solved] Problem with the installation of basic software (Bad header line)
Happy Debian !

EDIT Thu 11 Apr 08:30:51 CEST 2024: added [Solved] tag.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply