Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: probleem met vi  (gelezen 2251 keer)

Offline dorusone

  • Lid
probleem met vi
« Gepost op: 2008/04/18, 07:33:53 »
ik moet in de sources.lst een regel toevoegen
 (om programma scannen naar pdf te installeren)

maar ik loop vast in vi :

wat te doen ?
T.


E325: ATTENTION
Found a swap file by the name "/etc/apt/.sources.list.swp"
          owned by: root   dated: Fri Apr 18 07:18:03 2008
         file name: /etc/apt/sources.list
          modified: YES
         user name: root   host name: theo-desktop
        process ID: 7812
While opening file "/etc/apt/sources.list"
             dated: Tue Apr 15 14:54:12 2008

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/apt/sources.list"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/apt/.sources.list.swp"
    to avoid this message.
"/etc/apt/sources.list" 74 lines, 4300 characters
Press ENTER or type command to continue

Offline dorusone

  • Lid
probleem met vi
« Reactie #1 Gepost op: 2008/04/18, 08:04:43 »
Inmiddels een beetje Vi geleerd van Bart en David
maar nu een foutje in de eerste regel gemaakt (iets weggehaald of zo ?)

E: Type 'cdrom:[Ubundebtu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/' op regel 1 in bronlijst /etc/apt/sources.list is onbekend

Offline ivo

  • Lid
probleem met vi
« Reactie #2 Gepost op: 2008/04/18, 08:28:39 »
Geef de man een vis en hij heeft een dag te eten.
Geef de man een hengel en hij kan zelf zijn vis vangen.

http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+vi
There are only 10 types of people in the world; those who understand binary and those who don't.

Offline dorusone

  • Lid
probleem met vi
« Reactie #3 Gepost op: 2008/04/18, 08:32:38 »
ik denk dat ik van de regen in de drup geraak want :
als ik Synaptic Pakketbeheer wil starten krijg ik :

E: Type 'Uncomment' op regel 55 in bronlijst /etc/apt/sources.list is onbekend
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

Offline DarkStar

  • Lid
    • Mijn persoonlijke website
probleem met vi
« Reactie #4 Gepost op: 2008/04/18, 08:37:23 »
Ik weet dat het niet je probleem oplost maar kan je het eens proberen met nano?

° Bezoek mijn blog Digital (in)Sanity °

Offline dorusone

  • Lid
probleem met vi
« Reactie #5 Gepost op: 2008/04/18, 09:21:50 »
voordat ik dit :

/etc/apt/sources.list

ging bewerken
had ik natuurlijk eerst een kopie moeten maken.

Wie kan er een goede source list geven ?

Thx T.

Offline siegi

  • Lid
probleem met vi
« Reactie #6 Gepost op: 2008/04/18, 12:11:24 »
Zet gewoon je huidige sources.list eens hier.
Misschien is het simpeler een grafisch programma te gebruiken bv gedit of kate.

Offline dorusone

  • Lid
probleem met vi
« Reactie #7 Gepost op: 2008/04/18, 12:23:52 »
deze sourcelist vond ik (is ie ok , zo ja waar moet ie naar toe ?)

http://tuxicity.wordpress.com/sourceslist-for-gutsy-gibbon/


en dit is ¨de rotte¨ :

 #cdrom:[Ubundebtu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# Line commented out by installer because it failed to verify:
# deb http://nl.archive.ubuntu.com/ubuntu/ gutsy main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
# deb http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# Line commented out by installer because it failed to verify:

Offline DarkStar

  • Lid
    • Mijn persoonlijke website
probleem met vi
« Reactie #8 Gepost op: 2008/04/18, 12:38:39 »
Ik begrijp waarom je problemen hebt, al je regels staan als comment (regels voorafgaand met #) !!

Plak dit gewoon eens in /etc/apt/sources.list:
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://nl.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://nl.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical’s
## ‘partner’ repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
Ik heb hier geen Ubuntu systeem bij de hand op't werk, zal straks thuis mijn sources.list eens posten

° Bezoek mijn blog Digital (in)Sanity °

Offline dorusone

  • Lid
probleem met vi
« Reactie #9 Gepost op: 2008/04/18, 13:29:18 »
als ik de sourcelist helemaal leeg maak (met dd)
zegt nul lines in buffer

via copy en paste pak ik dan de goede source list

maar dan blijft ie in volgend fout vallen.

(copy en paste vecht met vi ??? )

brrrrrrr

ik ben het beu :)


E325: ATTENTION
Found a swap file by the name "/etc/apt/.sources.list.swp"
          owned by: root   dated: Fri Apr 18 07:18:03 2008
         file name: /etc/apt/sources.list
          modified: YES
         user name: root   host name: theo-desktop
        process ID: 7812
While opening file "/etc/apt/sources.list"
             dated: Fri Apr 18 13:25:31 2008
      NEWER than swap file!

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/apt/sources.list"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/apt/.sources.list.swp"
    to avoid this message.
"/etc/apt/sources.list" 49 lines, 2782 characters
Press ENTER or type command to continue

probleem met vi
« Reactie #10 Gepost op: 2008/04/18, 13:38:10 »
waarom gebruikt ge vi? is het niet makkelijker gedit te gebruiken?

Offline dorusone

  • Lid
probleem met vi
« Reactie #11 Gepost op: 2008/04/18, 14:01:34 »
met gedit krijg ik de sources.list niet gesaved.

probleem met vi
« Reactie #12 Gepost op: 2008/04/18, 14:10:36 »
gksudo gedit /etc/apt/sources.list

en dan krijgt ge hem niet gesaved?

Offline dorusone

  • Lid
probleem met vi
« Reactie #13 Gepost op: 2008/04/18, 14:35:27 »
ja eindelijk lijkt het gelukt  thanks allemaal.