2025年3月3日 星期一

Cleaning up old repositories 清理舊儲存庫

 Cleaning up old repositories 2025-02-17 - Sven-Hendrik Haase  Around two years ago, we've merged the [community] repository into [extra] as part of the git migration. In order to not break user setups, we kept these repositories around in an unused and empty state. We're going to clean up these old repositories on 2025-03-01.

清理舊儲存庫 2025-02-17 - Sven-Hendrik Haase 大約兩年前,我們將 [社區] 儲存庫合併到 [額外],作為 git 遷移的一部分。為了不破壞用戶設置,我們將這些存儲庫保持在未使用和空的狀態。我們將於 2025-03-01 清理這些舊儲存庫。

On systems where /etc/pacman.conf still references the old [community] repository, pacman -Sy will return an error on trying to sync repository metadata.The following deprecated repositories will be removed: [community], [community-testing], [testing], [testing-debug], [staging], [staging-debug].Please make sure to remove all use of the aforementioned repositories from your /etc/pacman.conf (for which a .pacnew was shipped with pacman>=6.0.2-7)!

在 /etc/pacman.conf 仍然引用舊 [community] 儲存庫的系統上,pacman -Sy 將在嘗試同步儲存庫元資料時傳回錯誤。以下棄用的儲存庫將會被刪除:[community]、[community-testing]、[testing]、[testing-debug]、[staging]、[staging-debug]。請確保從您的 /etc/pacmanNote: A .pacnew file was shipped with pacman>=6.0.2-7 to assist with this. If you haven't already, merge this .pacnew file into your /etc/pacman.conf.


如何在 Arch Linux 中刪除舊的棄用儲存庫 刪除舊的儲存庫很容易!基本步驟如下: 1.找到 /etc/pacman.conf:這是 Pacman 的主要設定文件,Pacman 是 Arch Linux 的預設套件管理器。

2. 使用文字編輯器開啟檔案:使用具有 root 權限的您喜歡的文字編輯器。

3.尋找已棄用的儲存庫:搜尋上面列出的儲存庫名稱。它們將出現在[括號]中。

4.刪除或註解掉這些行:您可以刪除整行,也可以在行首新增#來註解掉這些行。這將禁用該線路,但不會完全刪除。

5.保存文件。

注意:pacman>=6.0.2-7 附帶了一個 .pacnew 檔案來幫助解決此問題。如果您還沒有,請將此 .pacnew 檔案合併到您的 /etc/pacman.conf 中。

請容許我向您展示一個實際的例子。

假設你的 pacman.conf 檔案如下所示:

[options]

...


[core]

Include = /etc/pacman.d/mirrorlist


[extra]

Include = /etc/pacman.d/mirrorlist


[community]

Include = /etc/pacman.d/mirrorlist


您可以刪除或註解掉 [community] 部分:


[options]

...


[core]

Include = /etc/pacman.d/mirrorlist


[extra]

Include = /etc/pacman.d/mirrorlist


#[community]

#Include = /etc/pacman.d/mirrorlist


儲存檔案並關閉編輯器。就是這樣。

現在使用指令更新你的 Arch Linux 系統:


sudo pacman -Syu



2025年2月27日 星期四

肉羹麵線加小菜作為今天的早餐

今日早餐
肉羹麵線糊
肝連肉加油豆腐
這道組合要160元台幣,我也是偶爾想吃才吃,太貴了。味道可以,但沒有特地來吃的必要。

呃…只賣早餐…嚐鮮的還是要早起來吃。

早晨大霧街景

不特別提早晨,看起來還蠻像下午 3、4點的……

家樂福萬丹牛奶

萬丹鮮乳
營養標示表
聞起來很香,喝起來也蠻濃郁的…

味道沒什麼標準,依自己的喜好為主。我個人是比較喜歡牛奶有濃郁的香味,口感需要厚重一點。

但無關這牌鮮奶的品質…

會不會發生乳糖不耐症?就看自己腸胃囉!

家樂福有活動,憑折價卷一瓶75元,單張卷限購 3瓶。

但是我付完款後,又給同一張折價卷不知道是哪一招?是要給人家買了又買,買了又買的感覺嗎?

2024年11月15日 星期五

linux 終端下看硬體的指令

終端下看硬體型號指令:sudo lshw

終端下看硬體型號指令只看記憶體的型號指令:sudo lshw | grep memory

終端下看網路卡(有線、無線都會列出來。)型號指令:lspci | grep -i net

2024年11月13日 星期三

Arch and Xfce

1. USB pnp: Thunar can not mount USB sticks automatically. You check the pnp setting first, let the pnp on. Then install thunar-volman package logout and login one time, then USB pnp can be used.


------------------------------------------------------------------------MAYBE SOLVE THE USB QUESTION
$ pacman -Qi thunar
Name            : thunar
Version         : 1.8.16-1
Description     : Modern file manager for Xfce
Architecture    : x86_64
URL             : https://docs.xfce.org/xfce/thunar/start
Licenses        : GPL2  LGPL2.1
Groups          : xfce4
Provides        : None
Depends On      : desktop-file-utils  libexif  hicolor-icon-theme  libnotify  
libgudev  exo  libxfce4util  libxfce4ui  libpng
Optional Deps   : gvfs: for trash support, mounting with udisk and remote filesystems [installed]
                  xfce4-panel: for trash applet
                  tumbler: for thumbnail previews [installed]
                  thunar-volman: manages removable devices
                  thunar-archive-plugin: create and deflate archives
                  thunar-media-tags-plugin: view/edit id3/ogg tags
Required By     : thunar-dropbox
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 6.44 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : Sat 31 Oct 2020 11:07:36 PM EDT
Install Date    : Sun 01 Nov 2020 01:15:11 PM EST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

2024年10月24日 星期四

dropbox-lnx.x86_64-210.4.4854.tar.gz ... failed solved

 dropbox-lnx.x86_64-210.4.4854.tar.gz ... fail


I solved it by a stupid method. I always used paru for my first AUR helper. But I always installed yay for my second choice. So I used the command "paru -Rns dropbox" to uninstall the older version dropbox, then used yay to install the new version. It worked.


這個異常是因為金鑰問題需要更新。反正 arch論壇上大大們的解法,我看不懂,也不會。所以我就用比較暴力的方法解決這個問題,一開始我也是抱著試試看的想法,結果是我想要的,這樣就可以了!

方法如下:

1.執行 paru -Rns dropbox 指令,把所有系統裡的 dropbox相關檔案清光。

2.執行 yay -S dropbox 指令,重裝 dropbox。

3.




Powered By Blogger