[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: i'm having some problems, I am a fairly novice user, such as just getting to my /etc/apt/sources.list ( can you help)



On Sunday 16 March 2008 15:52, Thomas D. Gaudette wrote:
> thomas@c-76-119-151-250:~$ su
> Password:
> c-76-119-151-250:/home/thomas# etc/apt/sources.list
> bash: etc/apt/sources.list: No such file or directory
> c-76-119-151-250:/home/thomas# file /etc/apt/sources.list
> /etc/apt/sources.list: ASCII text
> c-76-119-151-250:/home/thomas# file
> Usage: file [-bcikLhnNsvz] [-f namefile] [-F separator] [-m magicfiles]
> file...
>         file -C -m magicfiles
> Try `file --help' for more information.

Hi Thomas. You need to get access to the file with a text editor, gedit, 
kwrite, or whichever you want to use. Obviously if you want to edit the file, 
you need to su to root on the CLI (terminal/konsole). So after su'ing to 
root, type gedit, or kwrite. This will open the editor of your choice, and 
then you can navigate, after clicking on filesystem, 
to /etc/apt/sources.list.

> c-76-119-151-250:/home/thomas# apt-get update
> Ign cdrom://[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 DVD Binary-1
> 20070819-11:33] etch Release.gpg
> Ign cdrom://[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 DVD Binary-1
> 20070819-11:33] etch Release
> Ign cdrom://[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 DVD Binary-1
> 20070819-11:33] etch/contrib Packages/DiffIndex
> Ign cdrom://[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 DVD Binary-1
> 20070819-11:33] etch/main Packages/DiffIndex
> Get:1 http://debian.osuosl.org etch Release.gpg [378B]
> Get:2 http://security.debian.org etch/updates Release.gpg [189B]
> Hit http://debian.osuosl.org etch Release
> Ign http://debian.osuosl.org etch/main Packages/DiffIndex
> Hit http://security.debian.org etch/updates Release
> Ign http://security.debian.org etch/updates/main Packages/DiffIndex
> Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
> Ign http://security.debian.org etch/updates/main Sources/DiffIndex
> Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
> Ign http://debian.osuosl.org etch/main Sources/DiffIndex
> Hit http://security.debian.org etch/updates/main Packages
> Hit http://security.debian.org etch/updates/contrib Packages
> Hit http://security.debian.org etch/updates/main Sources
> Hit http://security.debian.org etch/updates/contrib Sources
> Hit http://debian.osuosl.org etch/main Packages
> Hit http://debian.osuosl.org etch/main Sources
> Fetched 2B in 0s (2B/s)
> Reading package lists... Done
> c-76-119-151-250:/home/thomas# apt-get upgrade
> Reading package lists... Done
> Building dependency tree... Done
> You might want to run `apt-get -f install' to correct these.
> The following packages have unmet dependencies:
>    linux-image-2.6-686: Depends: linux-image-2.6.18-6-686 but it is not
> installedE: Unmet dependencies. Try using -f.
> c-76-119-151-250:/home/thomas# apt-get -f install
> Reading package lists... Done
> Building dependency tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
>    linux-image-2.6.18-6-686
> Suggested packages:
>    linux-doc-2.6.18
> Recommended packages:
>    libc6-i686
> The following NEW packages will be installed:
>    linux-image-2.6.18-6-686
> 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/16.5MB of archives.
> After unpacking 49.8MB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Preconfiguring packages ...
> (Reading database ... 91415 files and directories currently installed.)
> Unpacking linux-image-2.6.18-6-686 (from
> .../linux-image-2.6.18-6-686_2.6.18.dfsg.1-18etch1_i386.deb) ...
> Done.
> dpkg: error processing
> /var/cache/apt/archives/linux-image-2.6.18-6-686_2.6.18.dfsg.1-18etch1_i386
>.deb (--unpack):
>   failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during
The next line "No space left on device" may give a clue. Perhaps you don't 
have a very large / partition, and with all the updates, and many downloaded 
packages in /var/apt/cache/archives, you've just run out of free space on the 
partition.

If you're using KDE as a desktop, KdiskFree will show the used, and free space 
on the various partitions. Otherwise on the command line, just type df , and 
you will get the same output showing available space on your partitions.

Have a look in /var/cache/apt/archives, and see how many files are there, and 
how much space they are taking up on your partition. I have seen nearly 2GB's 
of downloaded packages there, and at the time was puzzled why the partition 
was so full, until I looked in the archives. These files are no longer 
needed, and an "apt-get clean" will get rid of them, and freeup some space.

You are going to loose your downloaded kernel image with an apt-get clean, and 
if you're on dialup like me, I'd suggest copying it as root to your /home 
partition. That is if you have a separate /home partition. Then do an apt-get 
clean, and then copy back the kernel image into /var/cache/apt/archives.

If I've read the problem correctly, an apt-get upgrade should now install the 
new kernel. Personally I don't use apt-get upgrade, but apt-get dist-upgrade, 
as it handles upgrading dependencies.
> `./lib/modules/2.6.18-6-686/kernel/fs/9p/9p.ko': No space left on device
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Running postrm hook script /sbin/update-grub.
> You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub
> instead!
> Searching for GRUB installation directory ... found: /boot/grub
> Searching for default file ... found: /boot/grub/default
> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
> Searching for splash image ... none found, skipping ...
> Found Xen hypervisor 3.0.3-1-i386-pae,  kernel: /vmlinuz-2.6.18-4-xen-686
> Found kernel: /vmlinuz-2.6.18-5-686
> Updating /boot/grub/menu.lst ... done
>
> Errors were encountered while processing:
>  
> /var/cache/apt/archives/linux-image-2.6.18-6-686_2.6.18.dfsg.1-18etch1_i386
>.debE: Sub-process /usr/bin/dpkg returned an error code (1)
> c-76-119-151-250:

All the best.

Nigel.


Reply to: