Results 1 to 3 of 3

Thread: Regenerate the apt configuration files

Hybrid View

  1. #1
    Member registered user
    Join Date
    Nov 2004
    Location
    Bellevue, WA
    Posts
    83

    Regenerate the apt configuration files

    I had nice fine tuned HD installation. I was trying to create a new Knoppix configuration to remaster and cleaning up my HD installation at the same time --> DO NOT TRY! I typed apt-get remove <package> in the wrong terminal window and the dpkg/apt configuration files became useless, so did my installation.

    I already tried to regenerate them using different methods and none worked. Anyone has a surefire recovery method for these files short of backing up all the configuration files, home directories, etc and reinstall Knoppix?

    -- GN

  2. #2
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    before you do a total reinstall, try removing/repacing apt; it's just another package like everything else. My first thought would be 'dpkg-reconfigure apt'. If that didn't work, 'apt-get -t unstable install apt'. If that no go, download the apt package manually then remove (purge) & reinstall it wirth dpkg.

  3. #3
    Member registered user
    Join Date
    Nov 2004
    Location
    Bellevue, WA
    Posts
    83
    Quote Originally Posted by CrashedAgain
    before you do a total reinstall, try removing/repacing apt; it's just another package like everything else. My first thought would be 'dpkg-reconfigure apt'. If that didn't work, 'apt-get -t unstable install apt'. If that no go, download the apt package manually then remove (purge) & reinstall it wirth dpkg.
    These are the only ideas I didn't try. I'm not sure if I would've succeded. Probably if I used the 'force' options. Apparently dpkg requires some of the files to pre-exist with some minimum content. at some point the files got deleted and completely out of sync with the installation. dpkg kept saying something like 'debonf missing or not installed' (something along those lines) and aborted.

    I finally had to reinstall and I'm being a lot more carefull now while updating the packages I need. I looked around the web and found absolutely no detailed documentation or clues on dpkg's configuration files. There was an old script at some forum which I tried and didn't work. The only thing left was to look into the source code.

    Since Knoppix has been such a success with all my family (they'd rather use Knoppix than Windows), I have another PC that I don't mind crashing and reinstalling as many times as necessary. It might take some time, but I'll test your ideas. If they work it might be worth documenting. The biggest criticism I found for Debian on the web are these configuration files.

    Thanks

    --GN

Similar Threads

  1. Saving configuration to HD / Writing files to HD
    By wualla in forum MS Windows & New to Linux
    Replies: 6
    Last Post: 05-18-2006, 03:59 PM
  2. Configuration files on USB key
    By dafne in forum Customising & Remastering
    Replies: 1
    Last Post: 02-18-2004, 06:00 PM
  3. Location of configuration files
    By prawira in forum Customising & Remastering
    Replies: 2
    Last Post: 10-28-2003, 09:40 AM
  4. Loading configuration files from the floppy
    By mechanical_messiah in forum General Support
    Replies: 2
    Last Post: 09-17-2003, 03:45 PM
  5. How to edit configuration files
    By Lars Jensen in forum General Support
    Replies: 10
    Last Post: 01-07-2003, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11 picture

NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11

$450.00



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor   picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor

$50.00



Intel Xeon W-3245 3.2ghz 16-Core CPU OEM - 2019 Mac Pro 7,1 picture

Intel Xeon W-3245 3.2ghz 16-Core CPU OEM - 2019 Mac Pro 7,1

$395.95



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$354.48



For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX picture

For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX

$149.99



HP Z420 Tower Workstation Xeon E5-1620 3.60GHz, 4GB Ram, NO HDD, NO OS picture

HP Z420 Tower Workstation Xeon E5-1620 3.60GHz, 4GB Ram, NO HDD, NO OS

$140.00