Results 1 to 9 of 9

Thread: Changing source for packages: lines in sources.list apt.conf.d 00knoppix

  1. #1
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Changing source for packages: lines in sources.list apt.conf.d 00knoppix

    I wish to change the default source for Synaptic. I changed the line in:
    Code:
    /etc/apt/apt.conf.d/00knoppix
    From:
    Code:
    APT::Default-Release "wheezy";
    To:
    Code:
    APT::Default-Release "squeeze-backports";
    and
    Code:
    /etc/apt/sources.list
    From:
    Code:
    deb http://ftp.de.debian.org/debian stable main contrib non-free
    and other lines
    To:
    Code:
    deb http://ftp.de.debian.org/debian-backports/ squeeze-backports main non-free
    The original files have been renamed and kept, and can be restored.
    Synaptic gives this error message
    Code:
    E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources
    E: _cache->open() failed, please report.
    and closes.
    What more needs to be done?
    The change is required to clean reinstall nvidia drivers and repair the following error codes as Output:
    Synaptic_Changes_Applied_terminal.txt
    For nvidia drivers the following errors are known to the system:
    Code:
    ERROR: The conflicting library '/usr/lib/i386-linux-gnu/libGL.so.1.2.0' is known to dpkg.
    Attached Files Attached Files

  2. #2
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Which local database file is updated by aptitude update?

    Backport is deprecated, I read in the instructions http://backports.debian.org/Instructions/
    So, when I write squeeze-backports in 00knoppix in
    Code:
    /etc/apt/apt.conf.d
    I get the following errors.
    Code:
    aptitude update
    E: The value 'squeeze' is invalid for APT::Default-Release as such a release is not available in the sources
    E: The value 'squeeze' is invalid for APT::Default-Release as such a release is not available in the sources
    Hit http://download.jitsi.org unstable/ Release.gpg
    Hit http://download.jitsi.org unstable/ Release   
    Ign http://ftp.debian.org squeeze-backports Release.gpg
    Hit http://download.jitsi.org unstable/ Packages
    Ign http://ftp.debian.org squeeze-backports Release
    Ign http://download.jitsi.org unstable/ Translation-en_US
    Ign http://download.jitsi.org unstable/ Translation-en
    Err http://ftp.debian.org squeeze-backports/main i386 Packages
      404  Not Found [IP: 130.89.148.12 80]
    Err http://ftp.debian.org squeeze-backports/contrib i386 Packages
      404  Not Found [IP: 130.89.148.12 80]
    Err http://ftp.debian.org squeeze-backports/non-free i386 Packages
      404  Not Found [IP: 130.89.148.12 80]
    Ign http://ftp.debian.org squeeze-backports/contrib Translation-en_US
    Ign http://ftp.debian.org squeeze-backports/contrib Translation-en
    Ign http://ftp.debian.org squeeze-backports/main Translation-en_US
    Ign http://ftp.debian.org squeeze-backports/main Translation-en
    Ign http://ftp.debian.org squeeze-backports/non-free Translation-en_US
    Ign http://ftp.debian.org squeeze-backports/non-free Translation-en
    80% [Working]W: Failed to fetch http://ftp.debian.org/debian/dists/squeeze-backports/main/binary-i386/Packages: 404  Not Found [IP: 130.89.148.12 80]
    W: Failed to fetch http://ftp.debian.org/debian/dists/squeeze-backports/contrib/binary-i386/Packages: 404  Not Found [IP: 130.89.148.12 80]
    W: Failed to fetch http://ftp.debian.org/debian/dists/squeeze-backports/non-free/binary-i386/Packages: 404  Not Found [IP: 130.89.148.12 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    E: Couldn't rebuild package cache
    E: The value 'squeeze' is invalid for APT::Default-Release as such a release is not available in the sources
    E: The value 'squeeze' is invalid for APT::Default-Release as such a release is not available in the sources
    I read the page on backport and the section on Installation from backport
    Install a package from backports
    All backports are deactivated by default (i.e. the packages are pinned to 100 by using ButAutomaticUpgrades: yes in the Release files. If you want to install something from backports run:
    Code:
    apt-get -t squeeze-backports install "package"
    of course you can use aptitude as well:
    Code:
    aptitude -t squeeze-backports install "package"
    After necessary amendments, when I type aptitude update, I get the following error message:
    Code:
    aptitude update
    E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources
    E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources
    Hit http://download.jitsi.org unstable/ Release.gpg
    Hit http://download.jitsi.org unstable/ Release
    Hit http://download.jitsi.org unstable/ Packages
    Ign http://http.debian.net squeeze-backports(-sloppy) Release.gpg
    Ign http://http.debian.net squeeze-backports(-sloppy) Release
    Ign http://download.jitsi.org unstable/ Translation-en_US
    Ign http://download.jitsi.org unstable/ Translation-en
    Err http://http.debian.net squeeze-backports(-sloppy)/main i386 Packages
      404  Not Found
    Ign http://http.debian.net squeeze-backports(-sloppy)/main Translation-en_US
    Ign http://http.debian.net squeeze-backports(-sloppy)/main Translation-en
    83% [Working]W: Failed to fetch http://http.debian.net/debian-backports/dists/squeeze-backports(-sloppy)/main/binary-i386/Packages: 404  Not Found
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    E: Couldn't rebuild package cache
    E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources
    
    E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources
    What is my mistake?

  3. #3
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    The cause of the problem

    There is an error in the file /etc/apt/apt.conf.d/00knoppix in declaring the stable package. Discussed in post: Flash Player no longer Directly Supports Linux .
    ...the second line sets ... default release ...Wheezy in Knoppix 7.2.0 ... prevents a sizeable number of packages from being marked as upgradable ... Before commenting out this line ...
    The default apt line needs to be hashed. I will now try the next step: changing my nvidia drivers...

  4. #4
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    There is an error in the file /etc/apt/apt.conf.d/00knoppix in declaring the stable package.
    Why do you think so?

    Please read more about solving problems
    Administrators Handbook => 6.2
    Debian Reference => 2.7
    Last edited by Werner P. Schulz; 08-12-2014 at 10:01 AM.

  5. #5
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Where does Apt in Knoppix store its cache database?

    From the Debian Manual :
    A cache is a temporary storage system used to speed up frequent data access when the usual access method is expensive (performance-wise). This concept can be applied in numerous situations and at different scales, from the core of microprocessors up to high-end storage systems.
    In the case of APT, the reference Packages files are those located on Debian mirrors. That said, it would be very ineffective to go through the network for every search that we might want to do in the database of available packages. That is why APT stores a copy of those files (in /var/lib/apt/lists/) and searches are done within those local files
    I changed /etc/apt/sources.list and /etc/apt/apt.conf.d/00knoppix (double-slashing '//), as pasted below;
    Code:
    // Debian/squeeze is the "stable" release for this version of KNOPPIX
    // APT::Default-Release "wheezy";
    Apt::Get::Purge;
    APT::Force-LoopBreak 1;
    APT::Cache-Limit 80000000;
    // Acquire::http::timeout 36000;
    // Acquire::http { Proxy "http://localhost:9999"; };
    and removed the list database from /var/lib/apt/lists but synaptic still responds like it did when those changes were not included, and reports:
    E: The value 'wheezy' is invalid for APT::default-Release as such a release is not available in the sources
    E: _cache->open() failed, please report.
    D replaced by ::d as the system is converting the characters into a smiley.

  6. #6
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Apt works, Synaptic doesn't

    Apt is obedient.
    only Synaptic is creating all sorts of problems...

  7. #7
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    Correction! apt-get update is obedient when synaptic is not. apt-get install *nvidia* is showing the error line once. Synaptic shows the error line when invoked, and when ok is pressed, it exits. Tasksel, when invoked, shows the error line numerous times and exits. The error lines, as stated earlier, are displayed despite the 2nd line in /etc/apt/apt.conf.d/00knoppix has been silenced.
    So apt must be accessing another configuration file from somewhere.
    The maintainers of Apt appear to be oblivious of the fact that while apt.conf is nowhere to be found, apt still has the file mentioned in its list of files.

  8. #8
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    This reason is this: Apt is the culprit
    APT's Default Priority Assignments
    If there is no preferences file or if there is no entry in the file
    that applies to a particular version then the priority assigned to that
    version is the priority of the distribution to which that version
    belongs.

  9. #9
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    Ultimately, I saw reason and installed the latest downloaded Unix/Linux driver from nvidia and resolved the conflicts rather than an uneasy living with a conflicted, debian reconfigured nvidia.

Posting Permissions

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


Commodore MPS-803 Dot Matrix Printer for C64 64C +4 C128 in Original Box picture

Commodore MPS-803 Dot Matrix Printer for C64 64C +4 C128 in Original Box

$39.95



CUSTOM Retro Restored Commodore 64 Computer Tested Vintage 1980s C64 Plus Manual picture

CUSTOM Retro Restored Commodore 64 Computer Tested Vintage 1980s C64 Plus Manual

$188.88



SD2IEC Cableless for Commodore 64 picture

SD2IEC Cableless for Commodore 64

$30.00



commodore 64 computer picture

commodore 64 computer

$95.00



Commodore Vic-20 Matching Box Games Power Supply Modem And More Tested Works picture

Commodore Vic-20 Matching Box Games Power Supply Modem And More Tested Works

$149.00



WORKING Commodore 64 C64 In Box Matching SN MINT CONDITION With Manual PSU picture

WORKING Commodore 64 C64 In Box Matching SN MINT CONDITION With Manual PSU

$258.88



Commodore 1350 Mouse 1985 Untested in Box picture

Commodore 1350 Mouse 1985 Untested in Box

$28.00



pi1541 Disk Emulator for Commodore -  picture

pi1541 Disk Emulator for Commodore -

$38.95



Commodore Floppy Disk Drive Model 1541 picture

Commodore Floppy Disk Drive Model 1541

$52.00



DEFECT  Commodore 64 64C Computer W/ Power Supply, Mouse, Joysticks, 7 Games.... picture

DEFECT Commodore 64 64C Computer W/ Power Supply, Mouse, Joysticks, 7 Games....

$199.99